Sha256: 8ef6a80b0d96914b581b37860518d3dbc69565e8e728da3e077274b9a99d5f07
Contents?: true
Size: 538 Bytes
Versions: 77
Compression:
Stored size: 538 Bytes
Contents
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).
Version data entries
77 entries across 77 versions & 1 rubygems