min-jumps-in-array

Starting at index 0, for an element n at index i, you are allowed to jump at most n indexes ahead. Given a list of numbers, find the minimum number of jumps to reach the end of the list.

Test

sbcl --non-interactive --eval "(ql:quickload :min-jumps-in-array/tests)" --eval "(asdf:test-system :min-jumps-in-array)"