TweakCode
Arrays and Stacks lessons
Loading editor…
Test casesRun to compare output
Input
nums = [1,0,-1,0,-2,2], target = 0
Output
—
Expected
[[-2,-1,1,2],[-2,0,0,2],[-1,0,0,1]]

More practice

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