Solution

ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2022/imperative-programming-resit/4/b/ii/solution

A single header with index == n, and with both next and prev pointing to itself, represents the entirely zero vector. It has no data nodes. The ignored header value can be 0.0. The vector dimension remains , even though the number of stored nonzero entries is zero.

New to topics? Read the docs here!