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

More practice

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