Ordered Set DSA Problems

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 (Easy)
  2. Merge Similar Items (Easy)
  3. Minimum Pair Removal to Sort Array I (Easy)
  4. 132 Pattern (Medium)
  5. Brightest Position on Street (Medium)
  6. Continuous Subarrays (Medium)
  7. Count Subarrays With More Ones Than Zeros (Medium)
  8. Design a 3D Binary Matrix with Efficient Layer Tracking (Medium)
  9. Design a Food Rating System (Medium)
  10. Design a Number Container System (Medium)
  11. Design Auction System (Medium)
  12. Design Log Storage System (Medium)
  13. Design Task Manager (Medium)
  14. Display Table of Food Orders in a Restaurant (Medium)
  15. Exam Room (Medium)
  16. Fruits Into Baskets III (Medium)
  17. Implement Router (Medium)
  18. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit (Medium)
  19. Longest Uploaded Prefix (Medium)
  20. Maximum Increasing Triplet Value (Medium)
  21. Minimum Absolute Difference Between Elements With Constraint (Medium)
  22. Minimum Absolute Sum Difference (Medium)
  23. Most Frequent IDs (Medium)
  24. My Calendar I (Medium)
  25. My Calendar II (Medium)
  26. Power Grid Maintenance (Medium)
  27. Random Point in Non-overlapping Rectangles (Medium)
  28. Smallest Number in Infinite Set (Medium)
  29. Stock Price Fluctuation (Medium)
  30. Tweet Counts Per Frequency (Medium)
  31. Amount of New Area Painted Each Day (Hard)
  32. Closest Room (Hard)
  33. Contains Duplicate III (Hard)
  34. Count Good Triplets in an Array (Hard)
  35. Count Integers in Intervals (Hard)
  36. Count of Range Sum (Hard)
  37. Count of Smaller Numbers After Self (Hard)
  38. Count the Number of K-Big Indices (Hard)
  39. Create Sorted Array through Instructions (Hard)
  40. Data Stream as Disjoint Intervals (Hard)
  41. Design an Array Statistics Tracker (Hard)
  42. Design Movie Rental System (Hard)
  43. Falling Squares (Hard)
  44. Find Servers That Handled Most Number of Requests (Hard)
  45. Finding MK Average (Hard)
  46. K Empty Slots (Hard)
  47. Longest Substring of One Repeating Character (Hard)
  48. Make Array Empty (Hard)
  49. Max Stack (Hard)
  50. Max Sum of Rectangle No Larger Than K (Hard)
  51. Maximum Frequency Stack (Hard)
  52. Maximum Segment Sum After Removals (Hard)
  53. Minimize Deviation in Array (Hard)
  54. Minimize Manhattan Distances (Hard)
  55. Minimum Operations to Equalize Binary String (Hard)
  56. Minimum Pair Removal to Sort Array II (Hard)
  57. Minimum Reverse Operations (Hard)
  58. My Calendar III (Hard)
  59. Number of Flowers in Full Bloom (Hard)
  60. Number of Pairs Satisfying Inequality (Hard)
  61. Odd Even Jump (Hard)
  62. Partition Array Into Two Arrays to Minimize Sum Difference (Hard)
  63. Range Module (Hard)
  64. Rectangle Area II (Hard)
  65. Reverse Pairs (Hard)
  66. Sequentially Ordinal Rank Tracker (Hard)
  67. The Skyline Problem (Hard)

Companies that ask ordered set problems

Before your interview

Most resumes are filtered by software before a recruiter reads them. Check your resume ATS score free, no signup needed.

Other DSA topics