Merge Sort in Python
Merge Sort orders a list. Say the idea in plain words, then complexity. Bubble/insertion/selection are O(n²) teaching sorts. Merge and heap are O(n log n). Python’s built-in sort is Timsort (O(n log n), very fast in practice).
Dry-run Merge Sort on a tiny list like [4, 1, 3, 2] on the board. Interviewers care that you can trace one pass, not that you recite a textbook page.
For Merge Sort in real code: sorted(a) / a.sort() is what you use. Write the algorithm only when they ask you to implement it.
Merge Sort in Python — output — [1, 2, 3, 4]. Split, sort halves, merge. O(n log n).
Idea + complexity + one tiny trace. Then say when to use built-in sort.