Merge Sort

Merge a list of items using merge sort, and describe the Time & Space complexity

mergeSort([5,4,3,2,1]) // [1,2,3,4,5]

Notes

  • I found merge sort to be interesting in a lot of senses. Because I understood the concept but I didn't mentally understand the implementation. I get that you, divide and then merge back in, but I had to give the concept more thought

Last updated