Match the algorithm to its average-case time complexity
Exercise and reference answers
- Matching pairs
- Left
- Binary Search
- Right
- O(log n)
- Left
- Merge Sort
- Right
- O(n log n)
- Left
- Quick Sort
- Right
- O(n log n)
- Left
- Bubble Sort
- Right
- O(n²)
- Left
- Linear Search
- Right
- O(n)