Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
KerrAvon
· 3y ago · 0 comments
A deque will usually work just as well in that environment and it will always have better general performance characteristics. There are very few legitimate uses of linked lists.
Comments
[–]
otabdeveloper4
3y ago
A deque is a doubly-linked list under the hood.
[–]
adgjlsfhk1
3y ago
Array based deques are very common (and usually much faster). Doubly linked lists are absolutely awful for memory locality.