You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Bart De Lepeleer a0e49e312a added "Breinbreker 1" 2 년 전
..
.exercism added "Breinbreker 1" 2 년 전
.eslintrc added "Breinbreker 1" 2 년 전
.gitignore added "Breinbreker 1" 2 년 전
.npmrc added "Breinbreker 1" 2 년 전
HELP.md added "Breinbreker 1" 2 년 전
LICENSE added "Breinbreker 1" 2 년 전
README.md added "Breinbreker 1" 2 년 전
babel.config.js added "Breinbreker 1" 2 년 전
package-lock.json added "Breinbreker 1" 2 년 전
package.json added "Breinbreker 1" 2 년 전
rectangles.js added "Breinbreker 1" 2 년 전
rectangles.spec.js added "Breinbreker 1" 2 년 전

README.md

Rectangles

Welcome to Rectangles on Exercism’s JavaScript Track. If you need help running the tests or submitting your code, check out HELP.md.

Instructions

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

Source

Created by

Contributed to by