Merge Sort LeetCode Problems: All 11,
With Python Solutions

Every problem in this library that LeetCode tags Merge Sort. 9 of them carry a complete Python solution, a worked example and the time and space complexity of the approach.

Easy
0
Medium
3
Hard
8
1 pattern

How Merge Sort problems are solved

A tag names the subject, not the method. These pattern hubs cover the techniques that actually solve Merge Sort problems — each one explains the approach, gives a Python template and states its complexity.

Eyes only

When the Merge Sort problem arrives live.

In the live round, Stealth Interview reads the problem off your screen, returns a working solution with a step-by-step explanation and its time and space complexity, and transcribes what the interviewer says. It's a desktop app for macOS and Windows, invisible to screen sharing.

Merge Sort problems by difficulty

Problems with a complete Python solution are listed first, then by ascending problem number.

Medium (3)

Medium problems
No.Problem
0148Sort List
0912Sort an Array
2031Count Subarrays With More Ones Than ZerosPremium

Hard (8)

Hard problems
No.Problem
0023Merge k Sorted Lists
0315Count of Smaller Numbers After Self
0327Count of Range Sum
0493Reverse Pairs
1649Create Sorted Array through Instructions
2179Count Good Triplets in an Array
2426Number of Pairs Satisfying Inequality
2519Count the Number of K-Big IndicesPremium