Improve Problem description for Rectangles

Đang mở
#2,062 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Lĩnh vực
documentation

Hướng nghiên cứu

Tìm trong repository phần mô tả bài toán Rectangles và câu được trích dẫn. Đọc các ví dụ xung quanh cùng cách diễn đạt hiện có, sau đó xóa hoặc thay thế câu gây khó hiểu bằng văn bản không mơ hồ; hoàn thành khi phần mô tả được render giải thích rõ hình dạng của đầu vào mà không định nghĩa lại các hình chữ nhật.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

The Rectangles problem asks users to count the number of rectangles in an array of ASCII text. In the problem description, an illustration of such an array is given, and its valid rectangles are called out.

However, there's a sentence at the end of the problem description that seems unhelpful:

You may assume that the input is always a proper rectangle (i.e. the length of every line equals the length of the first line).

What does this mean? It's confusing because:

  1. The sides of the rectangles do not need to all be equal (that's a square of course, which is a special case of a rectangle.)
  2. The "first line" means what?

I would propose that this sentence simply be removed, since knowing what a rectangle is seems pretty fundamental, and this sentence doesn't make anything clearer. If for some reason there needs to be explanatory text there, I think it should be helpful and unambiguous, perhaps like:

A rectangle's opposite sides will be both parallel and equal to each other in length. A rectangle's adjacent sides may or may not be equal to each other in length. You can see in the above examples that some rectangles have a height that is equal to their width, and some do not.

Or maybe the sentence is intended to convey something different than what a rectangle is? If that's the case, then I still think it could be clarified to communicate whatever is actually intended.

Ngôn ngữ chính
Ruby
Star
362
Fork
566
Merge trung bình
15 giờ 13 phút
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của exercism/problem-specifications

Tất cả issue của exercism/problem-specifications

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.