Counting Sort LeetCode Problems: All 8,
With Python Solutions

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

Easy
5
Medium
3
Hard
0
1 pattern

How Counting Sort problems are solved

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

Eyes only

When the Counting 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.

Counting Sort problems by difficulty

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

Easy (5)

Easy problems
No.Problem
0561Array Partition
1051Height Checker
1122Relative Sort Array
1365How Many Numbers Are Smaller Than the Current Number
2037Minimum Number of Moves to Seat Everyone

Medium (3)

Medium problems
No.Problem
0274H-Index
0912Sort an Array
1833Maximum Ice Cream Bars