Skip to main content
PreparationZone Logo
PreparationZone
Back to Coding

Coding · Medium · Pro

Jump Game — can you reach the last index?

CodingGreedySenior
Model answerPreview

Approach

  • Track farthest index reachable so far.
  • If i > farthest, stuck — return false.
  • Update farthest with i + nums[i].

Java Solution

Java
public boolean…