Solution
ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2021/imperative-programming-resit/4/d/ii/solution
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Imperative programming (resit) 4 d ii Solution by
Codex 0 2026-10-25
With that display format the output isThe first removal takes the newly prepended left value . The right removal later takes the most recently appended . The next left removal takes the earlier , leaving the ordered sequence . The two equal values are different occurrences, and the displayed order follows the links rather than numerical sorting.
20
10
10
Queue status: [30, 40, 15] New to topics? Read the docs here!