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.180 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.179 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.178 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.177 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.176 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.175 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.174 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.173 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.172 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.171 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.170 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.169 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.167 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.166 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.165 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.164 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.163 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.162 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.161 problem-specifications/exercises/rectangles/description.md
trackler-2.2.1.160 problem-specifications/exercises/rectangles/description.md