Sha256: 5247e62406bf3861edbc23c2ed04a543e46c8b0bbd0a3e4f8f2b24035d9b28a2
Contents?: true
Size: 1.1 KB
Versions: 63
Compression:
Stored size: 1.1 KB
Contents
# Pascals Triangle Compute Pascal's triangle up to a given number of rows. In Pascal's Triangle each number is computed by adding the numbers to the right and left of the current position in the previous row. ```text 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 # ... etc ``` ## Elm Installation Refer to the [Exercism help page](http://exercism.io/languages/elm) for Elm installation and learning resources. ## Writing the Code The first time you start an exercise, you'll need to ensure you have the appropriate dependencies installed. ```bash $ npm install ``` Execute the tests with: ```bash $ npm test ``` Automatically run tests again when you save changes: ```bash $ npm run watch ``` As you work your way through the test suite, be sure to remove the `skip <|` calls from each test until you get them all passing! ## Source Pascal's Triangle at Wolfram Math World [http://mathworld.wolfram.com/PascalsTriangle.html](http://mathworld.wolfram.com/PascalsTriangle.html) ## Submitting Incomplete Solutions It's possible to submit an incomplete solution so you can see how others have completed the exercise.
Version data entries
63 entries across 63 versions & 1 rubygems