Anonymous
7/20/2025, 8:32:09 PM No.105969755
in any DSA textbook we'll find out that we have two ways to implement maps - so called "hashmaps" and and the less common "treemaps".
which makes me wonder: why are there no "linked list maps"?
reading elements would obviously be slower - O(n) vs O(log n) - but inserting can be faster if we keep a reference to the tail of the linked list - O(1) vs O(log n).
am i missing something?
which makes me wonder: why are there no "linked list maps"?
reading elements would obviously be slower - O(n) vs O(log n) - but inserting can be faster if we keep a reference to the tail of the linked list - O(1) vs O(log n).
am i missing something?
Replies: