TweakCode
Optimization lessons
Loading editor…
Test casesRun to compare output
Input
heights = [4,2,7,6,9,14,12], bricks = 5, ladders = 1
Output
—
Expected
4

More practice

Same technique, different problems. Try them without the walkthrough.