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.159 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.158 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.157 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.156 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.155 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.154 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.153 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.152 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.151 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.150 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.149 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.148 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.147 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.146 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.145 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.144 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.143 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.142 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.141 tracks/javascript/exercises/rectangles/README.md
trackler-2.2.1.140 tracks/javascript/exercises/rectangles/README.md