What is the average case time complexity of merge sort?
Show answerHide answer
Correct answer: (A) O(n log n)
Explanation
Merge sort always halves the array (log n levels) and does O(n) merging work at each level. So its best, average and worst case are all O(n log n).