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.159 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.158 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.157 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.156 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.155 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.154 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.153 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.152 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.151 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.150 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.149 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.148 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.147 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.146 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.145 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.144 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.143 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.142 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.141 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.140 problem-specifications/exercises/rectangles/description.md