Merge sort is a naive way to sort with divide and conquer methodology. It needs $O(n)$ memory space unlike quick sort. However, it has only $O(n \log n)$ time complexity even at the worst-case.
1 |
|
Merge sort is a naive way to sort with divide and conquer methodology. It needs $O(n)$ memory space unlike quick sort. However, it has only $O(n \log n)$ time complexity even at the worst-case.
1 |
|