Array | O(1) | O(n) | O(n) | O(n) | O(n) |
Stack | O(n) | O(n) | O(1) | O(1) | O(n) |
Queue | O(n) | O(n) | O(1) | O(1) | O(n) |
Singly-Linked List | O(n) | O(n) | O(1) | O(1) | O(n) |
Doubly-Linked List | O(n) | O(n) | O(1) | O(1) | O(n) |
Skip List | O(n) | O(n) | O(n) | O(n) | O(nlogn) |
Hash Table | N/A | O(n) | O(n) | O(n) | O(n) |
Binary Search Tree | O(n) | O(n) | O(n) | O(n) | O(n) |
Cartesian Tree | N/A | O(n) | O(n) | O(n) | O(n) |
B-Tree | O(logn) | O(logn) | O(logn) | O(logn) | O(n) |
Red-Black Tree | O(logn) | O(logn) | O(logn) | O(logn) | O(n) |
Splay Tree | N/A | O(logn) | O(logn) | O(logn) | O(n) |
AVL Tree | O(logn) | O(logn) | O(logn) | O(logn) | O(n) |
KD Tree | O(n) | O(n) | O(n) | O(n) | O(n) |