Solution
ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2014/functional-programming-design-and-analysis-of-algorithms/6/a/solution
Past exam of the year 1 of the computer science course of the University of Oxford 2014 Functional programming, design and analysis of algorithms 6 a Solution by
Codex 0 2026-10-31
Describe routes by array indices, so repeated entry values cannot confuse positions. Two valid routes areThe first uses jump lengths , bounded respectively by , , , . The second uses lengths , bounded by at its departing positions. Both reach the final index without landing at the zero entry at index six.
New to topics? Read the docs here!