348 B
348 B
Divide and Conquer
Make big problem into smaller problems to solve
Merge Sort
yote
- find midpoint of list
- split into two smaller lists
- keep splitting smaller lists until we have a bunch of 1/2 size lists
- sort each using the smaller already sorted values against each other into a new sub-list
- combine and sort each thing