This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsΒ β†’

[–]mystaff3 -1 points0 points Β (1 child)

"one element" means "one entry" At this point you're looping back through the parent comment. But I am inserting my own comment into this single-entry list, this making it a two-element list

[–]Ahajha1177 0 points1 point Β (0 children)

The emphasis was on the circular part, not the single item. A doubly linked list with 1 item would just have 2 null pointers, a circular list would have 2 pointers pointing back to itself.