Sha256: 299b94757484aaaf202ad3ef516adc82b93fbb4481ccdeea4df1d604a7cc85e7

Contents?: true

Size: 1.16 KB

Versions: 68

Compression:

Stored size: 1.16 KB

Contents

# Rectangles

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

## Setup

Go through the setup instructions for JavaScript to
install the necessary dependencies:

http://exercism.io/languages/javascript

## Making the Test Suite Pass

Execute the tests with:

    jasmine <exercise-name>.spec.js

Replace `<exercise-name>` with the name of the current exercise. E.g., to
test the Hello World exercise:

    jasmine hello-world.spec.js

In many test suites all but the first test have been skipped.

Once you get a test passing, you can unskip the next one by
changing `xit` to `it`.


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

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.179 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.178 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.177 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.176 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.175 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.174 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.173 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.172 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.171 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.170 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.169 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.167 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.166 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.165 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.164 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.163 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.162 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.161 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.160 tracks/javascript/exercises/rectangles/README.md