Sha256: d2a783f714d48a9f48c1e20c4a3e8e6dcddb040bbcbe29a8dd475d7040709262

Contents?: true

Size: 690 Bytes

Versions: 183

Compression:

Stored size: 690 Bytes

Contents

# Rectangles

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).

## Submitting Incomplete Solutions
It's possible to submit an incomplete solution so you can see how others have completed the exercise.

Version data entries

183 entries across 183 versions & 1 rubygems

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