Easy20 pts
Jumping on the Clouds
Array of 0/1. Start 0, end at last. Jump +1 or +2. 1 is thunder. Min jumps?
Input
n, then n ints (0 or 1).
Output
Min jumps.
Sample
7 0 0 1 0 0 1 0
Expected
4
Loading editor…
Output
No output yet. Run your code to see results.