H
HopQuiz.
CS: Data Structures & Big-O
15 cards · by HopQuiz · free flashcards with spaced repetition
Study this deck in HopQuiz →
Cards in this deck
- Big-O of array access by index — O(1)
- Big-O of binary search — O(log n)
- Big-O of linear search — O(n)
- Big-O of merge sort — O(n log n)
- Big-O of bubble sort (worst case) — O(n²)
- A LIFO structure — Stack
- A FIFO structure — Queue
- Key–value structure with ~O(1) lookup — Hash table (hash map)
- A tree where each node has at most two children — Binary tree
- Nodes each pointing to the next — Linked list
- Amortized cost of appending to a dynamic array — O(1)
- Searching an unsorted linked list — O(n)
- What "O(1)" means — constant time
- Graph traversal using a queue — Breadth-first search (BFS)
- Graph traversal using a stack / recursion — Depth-first search (DFS)
Open HopQuiz to study CS: Data Structures & Big-O with flip, multiple-choice, and type-the-answer modes, spaced repetition, and a focus timer.
Launch HopQuiz →