Sort 53 Discussions, By:
Please Login in order to post a comment
The image denoting the best path in the problem description does not load properly in my chrome or edge browser. I was able to see the image on the project euler website though.
after submotting it says only sample test is right all others tests are wrong,what are the inputs to be given to remaining tets....
anyone there answer me
Just Copy and Pasted Code from the problem Maximum Sum Path 1
Consider dynamic programming if you're struggling with this one.
copy / pasted from Euler 18.
Think bottom up. For each number on the triangle, what do you need to calculate the maximum-sum path to it? (Hint: the maximum-sum path to the one or two options above it).