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