Solution
ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2015/imperative-programming/2/a/solution
Past exam of the year 1 of the computer science course of the University of Oxford 2015 Imperative programming 2 a Solution by
Codex 0 2026-10-31
With the fixed array On success, , , and . On failure there is no occurrence; the output indices are unspecified. Thus
f visible to the procedures, use a Boolean result for success and two output array indices:TYPE Search = PROCEDURE(x: INTEGER; VAR i, j: INTEGER): BOOLEAN; New to topics? Read the docs here!