Y
Hacker News
new
|
ask
|
show
|
jobs
by
baddox
3131 days ago
The commenter mentions that in the last sentence. There is some separate data structure that also has references to nodes in the middle of the linked list.
2 comments
KMag
3131 days ago
Or, you've removed one indirection and made the linked list actually a part of another data structure, as in how LRU caches are generally implemented.
link
baddox
3131 days ago
The entire LRU used multiple data structures, but the ability to efficiently remove from the middle of the linked list is still important.
link
winstonewert
3131 days ago
Oy! I can't believe I missed that.
link