Approach hintTry it first, then revealHide
Treat the indices reachable with j jumps as a window. While scanning it, track the farthest index reachable with one more jump, and count a jump each time the scan passes the current window's end.
Treat the indices reachable with j jumps as a window. While scanning it, track the farthest index reachable with one more jump, and count a jump each time the scan passes the current window's end.