Relative Content

Tag Archive for javaarraysloopsfor-loopconditional-statements

For loop condition not working as per expectations

I am writing a code in this code I have to find the minimum steps which can take me from index 0 to index n-1.nums[i] represent the maximum jump I can take from ith index.(Reference leetcode Q45 jump II)