Insertion sort will have a time complexity of _______________in the worst case.
Insertion sort will have a time complexity of _______________in the worst case.
Solution
✅ Correct Option: 4
Insertion sort takes each element and shifts it left past every larger element before it. The worst case is a reverse-sorted array, where the -th element must move past all elements before it.
Option 3: is the best case, when the array is already sorted and each element needs just one comparison.
Related questions:
2025: 15 May Shift 2
2026: 23 May Shift 1
2025: 13 May Shift 2
2026: 21 May Shift 1