Course · Section 11: Working With Arrays · Lecture 172: Sorting Arrays
Implement `mergeSort(arr)` returning the array sorted ascending using the merge sort algorithm.
+ 1 hidden test run on Submit.
Merge sort divides, sorts recursively, and merges. O(n log n) time, O(n) space.
Run your code to see results.