Cheat Sheet
Explore key worst case time complexities of common data structures and algorithms in this cheat sheet. Learn how operations like insert, retrieve, and traversal perform in arrays, linked lists, trees, and sorting methods to enhance your ability to evaluate algorithm efficiency.
We'll cover the following...
We'll cover the following...
Data-Structures
| Data Structure | Worst Case Complexity | Notes | ||||||
|---|---|---|---|---|---|---|---|---|
| Array |
|
|||||||
| Linked List |
|
Note that if new elements are added at the head of the linkedlist then insert becomes a O(1) operation. ... |
||||||
| Binary Tree |
|