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.139 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.138 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.137 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.136 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.135 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.134 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.133 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.132 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.131 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.130 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.129 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.128 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.127 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.126 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.125 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.124 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.123 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.122 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.121 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.120 tracks/javascript/exercises/rectangles/README.md