Sha256: 6c81e29ad1ad863b7e714452e39a598ea77c4491a2d4edad882d04b2ade6310e
Contents?: true
Size: 566 Bytes
Versions: 20
Compression:
Stored size: 566 Bytes
Contents
Count the rectangles in an ASCII diagram like the one below. ```text +--+ ++ | +-++--+ | | | +--+--+ ``` The above diagram contains 6 rectangles: ```text +-----+ | | +-----+ ``` ```text +--+ | | | | | | +--+ ``` ```text +--+ | | +--+ ``` ```text +--+ | | +--+ ``` ```text +--+ | | +--+ ``` ```text ++ ++ ``` 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).
Version data entries
20 entries across 20 versions & 1 rubygems