how is this true....
moving 2 to the right is index out of bound...
Actually, we can move 1 step (<= 2 steps) to the last element.
what sorry i dont get it should 2 from index 0 jump to index 2 which is out of bounds
Zaid, 2 represents your maximum jump length at that position, you can choose 1
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.