2 ms·
There is a fake element that is the head. It doesn't count as part of the list, but it's always in the list. With one element, the list is H->next = A, A
by tedunangst 16y ago
There is a fake element that is the head. It doesn't count as part of the list, but it's always in the list. With one element, the list is
H->next = A, A->next = H
H->prev = A, A->prev = H
- ced 16y agoOh, that's a clever solution. Thanks.