Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I feel like to compare linked lists and dequeues, you would have to give a specific implementation of a dequeue


Correct, deques are abstract data types and you can implement them multiple ways, including using linked lists or growable arrays/vectors. So they aren't directly comparable to linked lists since under the hood they can be implemented with linked lists (or doubly linked lists at least). You could compare the performance of different deque implementations, though.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: