TweakCode
Search lessons
Loading editor…
Test casesRun to compare output
Input
nums = [2,0,2,1,1,0]
Output
—
Expected
[0,0,1,1,2,2]

More practice

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