Implement the merge sort algorithm to sort an array
HardProblem Statement
Implement the merge sort algorithm to sort an array
Sample Input
[12, 11, 13, 5, 6, 7]
Sample Output
[5, 6, 7, 11, 12, 13]
Limits
Time: 2s · Memory: 256 MB
Implement the merge sort algorithm to sort an array
[12, 11, 13, 5, 6, 7]
[5, 6, 7, 11, 12, 13]
Time: 2s · Memory: 256 MB