Dynamic Arrays
What is the time complexity for:
O(n) beginningO(1)+ endO(n) beginningO(1)+ endO(1)O(1)O(n)Hash Maps
What is the time complexity for:
O(1)+ anywhereO(1)+ anywhereO(1)+O(1)+ by keyO(n) by valueO(n)Singly Linked Lists
What is the Big O for:
Stacks
What is the Big O for:
Assumes Doubly Linked List implementation
Queues
What is the Big O for:
Assumes Doubly Linked List implementation
Binary Search Tree
What is the Big O for:
If balanced, O(log(n)) for all operations (except traversal)
If unbalanced, O(n) for all operations
Traversal = O(n)
What are the 6 general data structure operations?
Strings
What is the time complexity for:
1. Adding
2. Removing
3. Accessing
O(n) beginning middle endO(n) biginning middle endO(1)