Sha256: d2a783f714d48a9f48c1e20c4a3e8e6dcddb040bbcbe29a8dd475d7040709262
Contents?: true
Size: 690 Bytes
Versions: 183
Compression:
Stored size: 690 Bytes
Contents
# Rectangles Count the rectangles in an ASCII diagram like the one below. ``` +--+ ++ | +-++--+ | | | +--+--+ ``` The above diagram contains 6 rectangles: ``` +-----+ | | +-----+ ``` ``` +--+ | | | | | | +--+ ``` ``` +--+ | | +--+ ``` ``` +--+ | | +--+ ``` ``` +--+ | | +--+ ``` ``` ++ ++ ``` 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). ## Submitting Incomplete Solutions It's possible to submit an incomplete solution so you can see how others have completed the exercise.
Version data entries
183 entries across 183 versions & 1 rubygems