Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Joshua Rutschmann 6d8cc87a85 Solved hw2/task3. Everything fine. il y a 8 ans
..
src Solved hw2/task3. Everything fine. il y a 8 ans
tests Init task3 il y a 8 ans
Cargo.toml Added Comments in task1. Inserted basic data structures in task3. il y a 8 ans
README.md Comment to not use any existing crates il y a 8 ans

README.md

Homework hw2 task3

prepare your task

Run the cargo command to prepare your task3/ directory as a library

task

Compute Pascal’s triangle up to a given number of rows. Create the new type PascalsTriangle and implement the methods new() and rows(). See the tests/task3.rs for more informationen about parameters and returns of the methods. Do not use any crates.

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