Jump Game As Interview Problem, Domain SolutionsOver on LeetCode, there's a problem known as the Jump Game.
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Determine if you are able to reach the last index.
Explanation: Jump 1 step from index 0 to 1, then 3 steps to the last index.
See Full Post and Comments