Can you reach the end?
jumps is a list where each value is the furthest you can jump forward
from that position. You start at index 0. Write can_reach_end(jumps)
that returns whether the last index can be reached. A list of one item
counts as reached.
can_reach_end([2, 3, 1, 1, 4]) -> True
can_reach_end([3, 2, 1, 0, 4]) -> False
can_reach_end([0]) -> True
The point is to practise a greedy pass that tracks one summary value, the furthest reachable position.
def can_reach_end(jumps):
...