Merge Sort is a Divide and Conquer algorithm.
Idea:
Key thought:
“Break the problem until it’s trivial, then combine the answers.”
[38, 27, 43, 3, 9, 82, 10]
[38, 27, 43, 3] [9, 82, 10]
Divide again:
[38, 27] [43, 3] [9, 82] [10]
Divide until single elements:
[38] [27] [43] [3] [9] [82] [10]