# Counting Sort DSA Problems

> 10 Counting Sort coding problems for placements and interviews, sorted easiest first, with hints and company tags. Free practice on InternHack.

Canonical: https://www.internhack.in/learn/dsa/counting-sort
Last updated: 2026-11-28

10 counting sort problems for coding interviews and campus placements, with hints and company tags. Below are all 10: 5 easy, 4 medium and 1 hard. Practise them free on InternHack and track what you have solved.

## Counting Sort problems, easiest first

1. [Array Partition](https://www.internhack.in/learn/dsa/problem/array-partition) (Easy)
2. [Height Checker](https://www.internhack.in/learn/dsa/problem/height-checker) (Easy)
3. [How Many Numbers Are Smaller Than the Current Number](https://www.internhack.in/learn/dsa/problem/how-many-numbers-are-smaller-than-the-current-number) (Easy)
4. [Minimum Number of Moves to Seat Everyone](https://www.internhack.in/learn/dsa/problem/minimum-number-of-moves-to-seat-everyone) (Easy)
5. [Relative Sort Array](https://www.internhack.in/learn/dsa/problem/relative-sort-array) (Easy)
6. [H-Index](https://www.internhack.in/learn/dsa/problem/h-index) (Medium)
7. [Maximum Ice Cream Bars](https://www.internhack.in/learn/dsa/problem/maximum-ice-cream-bars) (Medium)
8. [Smallest Palindromic Rearrangement I](https://www.internhack.in/learn/dsa/problem/smallest-palindromic-rearrangement-i) (Medium)
9. [Sort an Array](https://www.internhack.in/learn/dsa/problem/sort-an-array) (Medium)
10. [Make String Anti-palindrome](https://www.internhack.in/learn/dsa/problem/make-string-anti-palindrome) (Hard)

## Companies that ask counting sort problems

- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon): 9 of these problems
- [Google](https://www.internhack.in/learn/dsa/companies/google): 7 of these problems
- [Meta](https://www.internhack.in/learn/dsa/companies/meta): 7 of these problems
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft): 7 of these problems
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg): 6 of these problems
- [Apple](https://www.internhack.in/learn/dsa/companies/apple): 3 of these problems
- [TCS](https://www.internhack.in/learn/dsa/companies/tcs): 2 of these problems
- [Walmart Labs](https://www.internhack.in/learn/dsa/companies/walmart-labs): 2 of these problems
- [IBM](https://www.internhack.in/learn/dsa/companies/ibm): 1 of these problems
- [Salesforce](https://www.internhack.in/learn/dsa/companies/salesforce): 1 of these problems
- [DE Shaw](https://www.internhack.in/learn/dsa/companies/de-shaw): 1 of these problems
- [Intuit](https://www.internhack.in/learn/dsa/companies/intuit): 1 of these problems

## Before your interview

Most resumes are filtered by software before a recruiter reads them. [Check your resume ATS score free](https://www.internhack.in/ats-score/try), no signup needed.

## Other DSA topics

- [Array](https://www.internhack.in/learn/dsa/array) (1869)
- [String](https://www.internhack.in/learn/dsa/string) (775)
- [Hash Table](https://www.internhack.in/learn/dsa/hash-table) (708)
- [Math](https://www.internhack.in/learn/dsa/math) (564)
- [Dynamic Programming](https://www.internhack.in/learn/dsa/dynamic-programming) (557)
- [Sorting](https://www.internhack.in/learn/dsa/sorting) (464)
- [Greedy](https://www.internhack.in/learn/dsa/greedy) (407)
- [Depth-First Search](https://www.internhack.in/learn/dsa/depth-first-search) (314)
- [Binary Search](https://www.internhack.in/learn/dsa/binary-search) (298)
- [Matrix](https://www.internhack.in/learn/dsa/matrix) (246)
- [Breadth-First Search](https://www.internhack.in/learn/dsa/breadth-first-search) (245)
- [Bit Manipulation](https://www.internhack.in/learn/dsa/bit-manipulation) (238)
- [Tree](https://www.internhack.in/learn/dsa/tree) (235)
- [Two Pointers](https://www.internhack.in/learn/dsa/two-pointers) (217)
- [Prefix Sum](https://www.internhack.in/learn/dsa/prefix-sum) (204)
- [Database](https://www.internhack.in/learn/dsa/database) (197)
- [Heap (Priority Queue)](https://www.internhack.in/learn/dsa/heap-priority-queue) (196)
- [Simulation](https://www.internhack.in/learn/dsa/simulation) (177)
- [Counting](https://www.internhack.in/learn/dsa/counting) (174)
- [Binary Tree](https://www.internhack.in/learn/dsa/binary-tree) (169)

## Related

- [Home](https://www.internhack.in/)
- [Learn](https://www.internhack.in/learn)
- [DSA](https://www.internhack.in/learn/dsa)
