TweakCode
Graphs lessons
Loading editor…
Test casesRun to compare output
Input
heights = [[1,2,2],[3,8,2],[5,3,5]]
Output
—
Expected
2

More practice

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