TweakCode
Arrays and Stacks lessons
Loading editor…
Test casesRun to compare output
Input
target = 12, position = [10,8,0,5,3], speed = [2,4,1,1,3]
Output
—
Expected
3

More practice

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