Jump Game: Can Reach the End
Given an array of non-negative integers pads, where pads[i] is the maximum number of cells you can jump forward from index i. Starting at index 0, determine whether you can reach the last index....
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
