Selection sort, bubble sort, and insertion sort all have worst-case time
- A
O(n log n)
- B
O(n)
- Ccheck_circle
O(n²)
- D
O(2ⁿ)
Explanation
Quadratic; not suitable for large n.
AP Computer Science A· difficulty 4/5
Selection sort, bubble sort, and insertion sort all have worst-case time
O(n log n)
O(n)
O(n²)
O(2ⁿ)
Explanation
Quadratic; not suitable for large n.
Want 10 more like this — adaptive to your weak spots?