Given an array of positive integers( including 0 ).
Each value in the array indicates how many jumps you can take to the right. So, e.g. if array[3] = 2, it means that position 4 & 5 are reachable from position 3.
Find out if the last element is reachable from the front
No comments:
Post a Comment