AlgoMaster Logo

Triangle

triangle=[[2],[3,4],[6,5,7],[4,1,8,3]]
0 / 14
rows = 423465741830123step down to an adjacent cell each row; build cheapest totals bottom-up
algomaster.io
Step:Walk top to bottom, each step moves to an adjacent cell below. Build the cheapest totals from the bottom up