Same as Jump Game, but find the minimum number of jumps to reach the end. Guaranteed to be reachable.
Greedy BFS: treat it like levels in BFS. Each 'level' is the range of indices reachable with the same number of jumps.
💡 Pro tip: Understand this problem deeply — don't just memorize the code. Try explaining the approach out loud as if teaching a friend. If you can explain it simply, you truly understand it!
jump([2,3,1,1,4])
2