Coding · Medium · Pro
Jump Game — can you reach the last index?
CodingGreedySenior
Approach
- Track farthest index reachable so far.
- If
i > farthest, stuck — return false. - Update farthest with
i + nums[i].
Java Solution
Java
public boolean…Coding · Medium · Pro
i > farthest, stuck — return false.i + nums[i].public boolean…