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

Version Path
trackler-2.2.1.139 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.138 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.137 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.136 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.135 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.134 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.133 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.132 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.131 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.130 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.129 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.128 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.127 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.126 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.125 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.124 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.123 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.122 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.121 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.120 problem-specifications/exercises/rectangles/description.md