Computer MOD
What is the overall time complexity of the merge sort algorithm?
Explanation
Merge Sort is a divide and conquer algorithm that splits the array into halves, sorts them recursively, and merges them.Each level of recursion processes n elements, and there are log₂n levels, giving O(n log n) time complexity.It is stable and works well for large datasets.Worst, average, and best case all have O(n log n) complexity.Last verified on 24-03-2026