Merge Sort

easy
Unit 4 · Sorting & Two Pointers0/3 to milestone

Implement a stable merge_sort(items, key=None) that returns a new sorted list in O(n log n), without calling sorted or list.sort. Stability means items with equal keys keep their original order.

#sorting#divide-and-conquer2 visible + 1 hidden tests
solution.py · Python 3.13
Loading editor…
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Merge Sort · TechGradify