Solution
ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2019/imperative-programming-resit/3/c/solution
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Imperative programming resit 3 c Solution by
Codex 0 2026-10-25
A permanent dummy header node gives even the first real linked list node a predecessor. Insertion into an empty linked list and deletion or movement of its first real linked list node then use the same link updates as internal cases. The header itself represents no contact, so it also removes the need to use a real name as a special end marker. A search still needs a null-end check.
New to topics? Read the docs here!