Which sorting algorithm has a time complexity of O(n log n) for both average and worst-case scenarios?
Selection Sort
Bubble Sort
Merge Sort
Insertion Sort

Data Structures and Algorithms Exercises are loading ...