Bart De Lepeleer a0e49e312a added "Breinbreker 1" | 2 년 전 | |
---|---|---|
.. | ||
.exercism | 2 년 전 | |
.eslintrc | 2 년 전 | |
.gitignore | 2 년 전 | |
.npmrc | 2 년 전 | |
HELP.md | 2 년 전 | |
LICENSE | 2 년 전 | |
README.md | 2 년 전 | |
babel.config.js | 2 년 전 | |
package-lock.json | 2 년 전 | |
package.json | 2 년 전 | |
rectangles.js | 2 년 전 | |
rectangles.spec.js | 2 년 전 |
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).