Skip to content

jsaunie/algorithmie-test

Repository files navigation

Instructions

Install the excercise

If you are using node

npm i

If you are using python

virtualenv test_env
source test_env/bin/activate
pip install -r requirements.txt

The problem

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.

Triangle Image

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:

The expected solution

If you are using node

To solve this problem, write the body of the computeMaxSum function.

To test your function, run:

npm test

This will run the compliance tests

If you are using python

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published