Solution
ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2015/imperative-programming/3/b/solution
Past exam of the year 1 of the computer science course of the University of Oxford 2015 Imperative programming 3 b Solution by
Codex 0 2026-10-31
A dummy header node gives the first actual linked list node a predecessor, just like every other element. Linked-list deletion and insertion at the front can therefore update a predecessor's
tail with the same code used in the middle. An empty linked list is represented by a header whose tail is NIL. New to topics? Read the docs here!