Why do we use multiple data structures? [duplicate]
-
03-11-2019 - |
Question
This question already has an answer here:
I'm studying elementary data structures like Linked List, Doubly Linked List and Binary Trees like Binary Search Trees.
Both runs in worst case O(n) in the same operations, so why don't we use only one data structure?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with cs.stackexchange