# Ordered Set DSA Problems

> 67 Ordered Set 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/ordered-set
Last updated: 2026-11-28

67 ordered set problems for coding interviews and campus placements, with hints and company tags. Below are all 67: 3 easy, 27 medium and 37 hard. Practise them free on InternHack and track what you have solved.

## Ordered Set problems, easiest first

1. [Fruits Into Baskets II](https://www.internhack.in/learn/dsa/problem/fruits-into-baskets-ii) (Easy)
2. [Merge Similar Items](https://www.internhack.in/learn/dsa/problem/merge-similar-items) (Easy)
3. [Minimum Pair Removal to Sort Array I](https://www.internhack.in/learn/dsa/problem/minimum-pair-removal-to-sort-array-i) (Easy)
4. [132 Pattern](https://www.internhack.in/learn/dsa/problem/132-pattern) (Medium)
5. [Brightest Position on Street](https://www.internhack.in/learn/dsa/problem/brightest-position-on-street) (Medium)
6. [Continuous Subarrays](https://www.internhack.in/learn/dsa/problem/continuous-subarrays) (Medium)
7. [Count Subarrays With More Ones Than Zeros](https://www.internhack.in/learn/dsa/problem/count-subarrays-with-more-ones-than-zeros) (Medium)
8. [Design a 3D Binary Matrix with Efficient Layer Tracking](https://www.internhack.in/learn/dsa/problem/design-a-3d-binary-matrix-with-efficient-layer-tracking) (Medium)
9. [Design a Food Rating System](https://www.internhack.in/learn/dsa/problem/design-a-food-rating-system) (Medium)
10. [Design a Number Container System](https://www.internhack.in/learn/dsa/problem/design-a-number-container-system) (Medium)
11. [Design Auction System](https://www.internhack.in/learn/dsa/problem/design-auction-system) (Medium)
12. [Design Log Storage System](https://www.internhack.in/learn/dsa/problem/design-log-storage-system) (Medium)
13. [Design Task Manager](https://www.internhack.in/learn/dsa/problem/design-task-manager) (Medium)
14. [Display Table of Food Orders in a Restaurant](https://www.internhack.in/learn/dsa/problem/display-table-of-food-orders-in-a-restaurant) (Medium)
15. [Exam Room](https://www.internhack.in/learn/dsa/problem/exam-room) (Medium)
16. [Fruits Into Baskets III](https://www.internhack.in/learn/dsa/problem/fruits-into-baskets-iii) (Medium)
17. [Implement Router](https://www.internhack.in/learn/dsa/problem/implement-router) (Medium)
18. [Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit](https://www.internhack.in/learn/dsa/problem/longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit) (Medium)
19. [Longest Uploaded Prefix](https://www.internhack.in/learn/dsa/problem/longest-uploaded-prefix) (Medium)
20. [Maximum Increasing Triplet Value](https://www.internhack.in/learn/dsa/problem/maximum-increasing-triplet-value) (Medium)
21. [Minimum Absolute Difference Between Elements With Constraint](https://www.internhack.in/learn/dsa/problem/minimum-absolute-difference-between-elements-with-constraint) (Medium)
22. [Minimum Absolute Sum Difference](https://www.internhack.in/learn/dsa/problem/minimum-absolute-sum-difference) (Medium)
23. [Most Frequent IDs](https://www.internhack.in/learn/dsa/problem/most-frequent-ids) (Medium)
24. [My Calendar I](https://www.internhack.in/learn/dsa/problem/my-calendar-i) (Medium)
25. [My Calendar II](https://www.internhack.in/learn/dsa/problem/my-calendar-ii) (Medium)
26. [Power Grid Maintenance](https://www.internhack.in/learn/dsa/problem/power-grid-maintenance) (Medium)
27. [Random Point in Non-overlapping Rectangles](https://www.internhack.in/learn/dsa/problem/random-point-in-non-overlapping-rectangles) (Medium)
28. [Smallest Number in Infinite Set](https://www.internhack.in/learn/dsa/problem/smallest-number-in-infinite-set) (Medium)
29. [Stock Price Fluctuation](https://www.internhack.in/learn/dsa/problem/stock-price-fluctuation) (Medium)
30. [Tweet Counts Per Frequency](https://www.internhack.in/learn/dsa/problem/tweet-counts-per-frequency) (Medium)
31. [Amount of New Area Painted Each Day](https://www.internhack.in/learn/dsa/problem/amount-of-new-area-painted-each-day) (Hard)
32. [Closest Room](https://www.internhack.in/learn/dsa/problem/closest-room) (Hard)
33. [Contains Duplicate III](https://www.internhack.in/learn/dsa/problem/contains-duplicate-iii) (Hard)
34. [Count Good Triplets in an Array](https://www.internhack.in/learn/dsa/problem/count-good-triplets-in-an-array) (Hard)
35. [Count Integers in Intervals](https://www.internhack.in/learn/dsa/problem/count-integers-in-intervals) (Hard)
36. [Count of Range Sum](https://www.internhack.in/learn/dsa/problem/count-of-range-sum) (Hard)
37. [Count of Smaller Numbers After Self](https://www.internhack.in/learn/dsa/problem/count-of-smaller-numbers-after-self) (Hard)
38. [Count the Number of K-Big Indices](https://www.internhack.in/learn/dsa/problem/count-the-number-of-k-big-indices) (Hard)
39. [Create Sorted Array through Instructions](https://www.internhack.in/learn/dsa/problem/create-sorted-array-through-instructions) (Hard)
40. [Data Stream as Disjoint Intervals](https://www.internhack.in/learn/dsa/problem/data-stream-as-disjoint-intervals) (Hard)
41. [Design an Array Statistics Tracker](https://www.internhack.in/learn/dsa/problem/design-an-array-statistics-tracker) (Hard)
42. [Design Movie Rental System](https://www.internhack.in/learn/dsa/problem/design-movie-rental-system) (Hard)
43. [Falling Squares](https://www.internhack.in/learn/dsa/problem/falling-squares) (Hard)
44. [Find Servers That Handled Most Number of Requests](https://www.internhack.in/learn/dsa/problem/find-servers-that-handled-most-number-of-requests) (Hard)
45. [Finding MK Average](https://www.internhack.in/learn/dsa/problem/finding-mk-average) (Hard)
46. [K Empty Slots](https://www.internhack.in/learn/dsa/problem/k-empty-slots) (Hard)
47. [Longest Substring of One Repeating Character](https://www.internhack.in/learn/dsa/problem/longest-substring-of-one-repeating-character) (Hard)
48. [Make Array Empty](https://www.internhack.in/learn/dsa/problem/make-array-empty) (Hard)
49. [Max Stack](https://www.internhack.in/learn/dsa/problem/max-stack) (Hard)
50. [Max Sum of Rectangle No Larger Than K](https://www.internhack.in/learn/dsa/problem/max-sum-of-rectangle-no-larger-than-k) (Hard)
51. [Maximum Frequency Stack](https://www.internhack.in/learn/dsa/problem/maximum-frequency-stack) (Hard)
52. [Maximum Segment Sum After Removals](https://www.internhack.in/learn/dsa/problem/maximum-segment-sum-after-removals) (Hard)
53. [Minimize Deviation in Array](https://www.internhack.in/learn/dsa/problem/minimize-deviation-in-array) (Hard)
54. [Minimize Manhattan Distances](https://www.internhack.in/learn/dsa/problem/minimize-manhattan-distances) (Hard)
55. [Minimum Operations to Equalize Binary String](https://www.internhack.in/learn/dsa/problem/minimum-operations-to-equalize-binary-string) (Hard)
56. [Minimum Pair Removal to Sort Array II](https://www.internhack.in/learn/dsa/problem/minimum-pair-removal-to-sort-array-ii) (Hard)
57. [Minimum Reverse Operations](https://www.internhack.in/learn/dsa/problem/minimum-reverse-operations) (Hard)
58. [My Calendar III](https://www.internhack.in/learn/dsa/problem/my-calendar-iii) (Hard)
59. [Number of Flowers in Full Bloom](https://www.internhack.in/learn/dsa/problem/number-of-flowers-in-full-bloom) (Hard)
60. [Number of Pairs Satisfying Inequality](https://www.internhack.in/learn/dsa/problem/number-of-pairs-satisfying-inequality) (Hard)
61. [Odd Even Jump](https://www.internhack.in/learn/dsa/problem/odd-even-jump) (Hard)
62. [Partition Array Into Two Arrays to Minimize Sum Difference](https://www.internhack.in/learn/dsa/problem/partition-array-into-two-arrays-to-minimize-sum-difference) (Hard)
63. [Range Module](https://www.internhack.in/learn/dsa/problem/range-module) (Hard)
64. [Rectangle Area II](https://www.internhack.in/learn/dsa/problem/rectangle-area-ii) (Hard)
65. [Reverse Pairs](https://www.internhack.in/learn/dsa/problem/reverse-pairs) (Hard)
66. [Sequentially Ordinal Rank Tracker](https://www.internhack.in/learn/dsa/problem/sequentially-ordinal-rank-tracker) (Hard)
67. [The Skyline Problem](https://www.internhack.in/learn/dsa/problem/the-skyline-problem) (Hard)

## Companies that ask ordered set problems

- [Google](https://www.internhack.in/learn/dsa/companies/google): 50 of these problems
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon): 44 of these problems
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft): 22 of these problems
- [Meta](https://www.internhack.in/learn/dsa/companies/meta): 20 of these problems
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg): 17 of these problems
- [Uber](https://www.internhack.in/learn/dsa/companies/uber): 16 of these problems
- [Apple](https://www.internhack.in/learn/dsa/companies/apple): 8 of these problems
- [Tiktok](https://www.internhack.in/learn/dsa/companies/tiktok): 6 of these problems
- [Oracle](https://www.internhack.in/learn/dsa/companies/oracle): 4 of these problems
- [Salesforce](https://www.internhack.in/learn/dsa/companies/salesforce): 4 of these problems
- [Capital ONE](https://www.internhack.in/learn/dsa/companies/capital-one): 4 of these problems
- [Linkedin](https://www.internhack.in/learn/dsa/companies/linkedin): 3 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)
