1/13
Loading...
🏛️Pyramid Treasure!
Let's collect the maximum treasure from the top to the bottom of the pyramid!
Loading...
Let's collect the maximum treasure from the top to the bottom of the pyramid!
An ancient pyramid has treasures on each level. Starting from the top, collect treasures as you descend to the bottom. At each position, you can only move to the cell directly below or diagonally right-below. Find the maximum sum of treasures you can collect.
[[7], [3, 8], [8, 1, 0], [2, 7, 4, 4]]
22
Optimal path: 7 → 3 → 8 → 4 = 22 (7+3+8+4)