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

More practice

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