A street runs along a number line from position 0 to position finish, where finish > 0. Your journey begins at 0 and ends at finish.
The array scooters contains the distinct starting positions of the electric scooters on the street. Each scooters[i] represents the initial position of the scooter. A scooter can move at most 10 units to the right before its battery runs out. For example, a scooter starting at position 5 can travel as far as position 15, but cannot reach position 16 or beyond.
Ask AI Assistant

Ask AI Assistant
Ask me anything about this coding question!
Test Cases
Input
Output
Expected