Merge Sort
Divides the array into halves, recursively sorts them, and merges the sorted halves back together.
Time ComplexityBestO(nlogn)AvgO(nlogn)WorstO(nlogn) Max OperationsWorst-case boundn⋅⌈log2(n)⌉ Used for efficiency calculation in Stats Panel
Space ComplexityAuxO(n) Extra array for merging + O(log n) call stack