TweakCode
Recursion lessons
Loading editor…
Test casesRun to compare output
Input
root = [3,9,20,null,null,15,7]
Output
—
Expected
2

More practice

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