Bart De Lepeleer a0e49e312a added "Breinbreker 1" | vor 2 Jahren | |
---|---|---|
.. | ||
.exercism | vor 2 Jahren | |
.eslintrc | vor 2 Jahren | |
.gitignore | vor 2 Jahren | |
.npmrc | vor 2 Jahren | |
HELP.md | vor 2 Jahren | |
LICENSE | vor 2 Jahren | |
README.md | vor 2 Jahren | |
babel.config.js | vor 2 Jahren | |
package-lock.json | vor 2 Jahren | |
package.json | vor 2 Jahren | |
rectangles.js | vor 2 Jahren | |
rectangles.spec.js | vor 2 Jahren |
Welcome to Rectangles on Exercism’s JavaScript Track.
If you need help running the tests or submitting your code, check out HELP.md
.
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).