Worst Case Time Complexity:

**O(n log n)**

Worst Case Space Complexity:

**O(n)**

Merge sort is a divide and conquer algorithm.

1. We are given an unsorted list of

*n*numbers
2. Divide it into two array of equal size

3. Again Divide those two into another two array of equal size

4. Keep on dividing it until one element is left in each array.

5. Keep Merging the sub arrays to produce sorted arrays until there is only one array remaining.. This will be our sorted array.