Oplossingen
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
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