Problem 42938. Project Euler: Problem 18, Maximum path sum I
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.
3*
7* 4
2 4* 6
8 5 9* 33 + 7 + 4 + 9 = 23
Find the maximum total from top to bottom of a given triangle.
Solution Stats
Problem Comments
-
1 Comment
Dyuman Joshi
on 21 Mar 2022
I am having trouble understanding the concept, for e.g - tril(magic(10)), what I understand is 92+98+81+87+93+76+89+97+78+84=875, which is incorrect acc to the test suite
Solution Comments
Show commentsProblem Recent Solvers107
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1928 Solvers
-
Project Euler: Problem 1, Multiples of 3 and 5
3481 Solvers
-
Similar Triangles - find the height of the tree
451 Solvers
-
1508 Solvers
-
How many rectangles in a grid ?
76 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!