npm i
virtualenv test_env
source test_env/bin/activate
pip install -r requirements.txt
By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23.
That is, 3 + 7 + 4 + 9 = 23.
Our goal is to find the maximum total from top to bottom in the two triangles contained in the data folder:
To solve this problem, write the body of the computeMaxSum function.
To test your function, run:
npm test
This will run the compliance tests
To solve this problem, write the body of the compute_max_sum function.
To test your function, run:
pytest
This will run the compliance tests