itsjohnty / Hacktoberfest

Repo for Hacktoberfest
9 stars 66 forks source link

Create-Minimum-number-of-jumps-GFG.java #42

Closed xayyeem closed 1 year ago

xayyeem commented 1 year ago

this question is from gfg medium based on greedy where there will be given an array of N integers arr[] where each element represents the maximum length of the jump that can be made forward from that element. This means if arr[i] = x, then we can jump any distance y such that y ≤ x.