Comment Re:Link lists? (Score 5, Insightful) 118
Linked lists are not necessarily a poor choice for a data structure. The cost of adding and removing elements from a balanced binary tree is completely wasted when you only need to add or remove from the beginning or end of a list. A linked list is a perfect data structure for a fifo or deque.
All data structures have their advantages and disadvantages; your choice should depend entirely on your requirements.