Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 589 Bytes

README.md

File metadata and controls

26 lines (16 loc) · 589 Bytes

README

A simple triangle challenge solution. For simplicity and brevity's sake, the solution was made in python3 but it also runs in python2

By starting at the top of the triangle below and moving to adjacent numbers on the row below, the objective is to find the largest sum of numbers

Running the solution

Simply run

python challenge/main.py

You can change the input triangle at the main.py file

Tests

You can run the tests with

python -m unittest tests.test

License

This code runs under MIT License