TweakCode
Arrays and Stacks lessons
Loading editor…
Test casesRun to compare output
Input
nums1 = [4,1,2], nums2 = [1,3,4,2]
Output
—
Expected
[-1,3,-1]

More practice

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