exercism-rust/pascals-triangle
2023-08-21 13:50:14 -04:00
..
.exercism init commit 2023-08-21 13:50:14 -04:00
src init commit 2023-08-21 13:50:14 -04:00
tests init commit 2023-08-21 13:50:14 -04:00
.gitignore init commit 2023-08-21 13:50:14 -04:00
Cargo.toml init commit 2023-08-21 13:50:14 -04:00
HELP.md init commit 2023-08-21 13:50:14 -04:00
README.md init commit 2023-08-21 13:50:14 -04:00

Pascal's Triangle

Welcome to Pascal's Triangle on Exercism's Rust Track. If you need help running the tests or submitting your code, check out HELP.md.

Instructions

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.

    1
   1 1
  1 2 1
 1 3 3 1
1 4 6 4 1
# ... etc

Source

Created by

  • @IanWhitney

Contributed to by

  • @coriolinus
  • @cwhakes
  • @efx
  • @ErikSchierboom
  • @hekrause
  • @lutostag
  • @navossoc
  • @nfiles
  • @petertseng
  • @rofrol
  • @stringparser
  • @xakon
  • @ZapAnton

Based on

Pascal's Triangle at Wolfram Math World - http://mathworld.wolfram.com/PascalsTriangle.html