When should I pick a singly-linked list over a doubly-linked one or a circular-linked one?
I understand how they work but cannot imagine a situation where one works better in a particular problem than the other.
When should I pick a singly-linked list over a doubly-linked one or a circular-linked one?
I understand how they work but cannot imagine a situation where one works better in a particular problem than the other.
Any time you need to move both backwards and forwards in a list, a doubly linked list is preferred. Any time you need to move continually from start to finish and back to start again, a circular loop is handy, or any time you don't care what is considered the "top" of the list.
Quzah.
Hope is the first step on the road to disappointment.