Sha256: 3aa93c30c91eb706483f8928399a2668ac64706c026ea63d4439b71636e0d6f5
Contents?: true
Size: 511 Bytes
Versions: 119
Compression:
Stored size: 511 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
119 entries across 119 versions & 1 rubygems