Each cell says how far you may jump from it. Starting at the first index, can you reach the last? DP first, then the greedy.
Each cell says how far you may jump from it. Starting at the first index, can you reach the last? DP first, then the greedy.
Opens with the full question.