TweakCode
Recursion lessons
Loading editor…
Test casesRun to compare output
Input
nums = [-10,-3,0,5,9]
Output
—
Expected
[0,-10,5,null,-3,null,9]

More practice

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