Jump Game II — greedy reach windows
Each jump covers a stretch of indices. Within the current stretch, track the farthest you could reach; when you hit the stretch's edge, you must jump, and the next stretch reaches that farthest point.
Try:
jumps 0
farthest reachable 0