The worst case time complexity of Insertion Sort is _______________.
The worst case time complexity of Insertion Sort is _______________.
Solution
✅ Correct Option: 1
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.
Total shifts
Option 2: is the best case, an already sorted array, where each element needs only one comparison.
Option 4: is the number of comparisons if binary search is used to find the position, but the shifting still takes .
Related questions:
2026: 31 May Shift 1
2025: 16 May Shift 1