Enumeration DSA Problems

113 enumeration problems for coding interviews and campus placements, with hints and company tags. Below are the first 100 of 113: 26 easy, 44 medium and 30 hard. Practise them free on InternHack and track what you have solved.

Enumeration problems, easiest first

  1. Count Symmetric Integers (Easy)
  2. Count Good Triplets (Easy)
  3. Count Monobit Integers (Easy)
  4. Count Special Quadruplets (Easy)
  5. Count Square Sum Triples (Easy)
  6. Count the Number of Incremovable Subarrays I (Easy)
  7. Detect Pattern of Length M Repeated K or More Times (Easy)
  8. Distribute Candies Among Children I (Easy)
  9. Divide an Array Into Subarrays With Minimum Cost I (Easy)
  10. Find the Peaks (Easy)
  11. Finding 3-Digit Even Numbers (Easy)
  12. Form Smallest Number From Two Digit Arrays (Easy)
  13. Greatest English Letter in Upper and Lower Case (Easy)
  14. Latest Time You Can Obtain After Replacing Characters (Easy)
  15. Maximum Height of a Triangle (Easy)
  16. Maximum Subarray With Equal Products (Easy)
  17. Number of Arithmetic Triplets (Easy)
  18. Number of Common Factors (Easy)
  19. Number of Valid Clock Times (Easy)
  20. Remove Digit From Number to Maximize Result (Easy)
  21. Similar RGB Color (Easy)
  22. Smallest Divisible Digit Product I (Easy)
  23. Sum of All Subset XOR Totals (Easy)
  24. Sum of Squares of Special Elements (Easy)
  25. Three Divisors (Easy)
  26. Unique 3-Digit Even Numbers (Easy)
  27. Ambiguous Coordinates (Medium)
  28. Apply Operations to Make Sum of Array Greater Than or Equal to k (Medium)
  29. Check if Move is Legal (Medium)
  30. Check if Word Can Be Placed In Crossword (Medium)
  31. Collecting Chocolates (Medium)
  32. Coordinate With Maximum Network Quality (Medium)
  33. Count Almost Equal Pairs I (Medium)
  34. Count Beautiful Substrings I (Medium)
  35. Count Lattice Points Inside a Circle (Medium)
  36. Count Number of Maximum Bitwise-OR Subsets (Medium)
  37. Count Primes (Medium)
  38. Count Special Subsequences (Medium)
  39. Count Substrings That Differ by One Character (Medium)
  40. Count the Number of Substrings With Dominant Ones (Medium)
  41. Distribute Candies Among Children II (Medium)
  42. Find Maximum Area of a Triangle (Medium)
  43. Find the Integer Added to Array II (Medium)
  44. Find the Lexicographically Largest String From the Box I (Medium)
  45. Find the Maximum Number of Elements in Subset (Medium)
  46. Find the Number of Ways to Place People I (Medium)
  47. Happy Students (Medium)
  48. Identify the Largest Outlier in an Array (Medium)
  49. K Divisible Elements Subarrays (Medium)
  50. Largest Time for Given Digits (Medium)
  51. Lexicographically Smallest Permutation Greater Than Target (Medium)
  52. Lexicographically Smallest String After Applying Operations (Medium)
  53. Longest Balanced Substring I (Medium)
  54. Longest Mountain in Array (Medium)
  55. Longest Palindrome After Substring Concatenation I (Medium)
  56. Maximize Active Section with Trade I (Medium)
  57. Maximum Area Rectangle With Point Constraints I (Medium)
  58. Maximum Frequency After Subarray Operation (Medium)
  59. Maximum Points in an Archery Competition (Medium)
  60. Maximum Possible Number by Binary Concatenation (Medium)
  61. Maximum Rows Covered by Columns (Medium)
  62. Maximum Square Area by Removing Fences From a Field (Medium)
  63. Minimize Result by Adding Parentheses to Expression (Medium)
  64. Minimum Cost to Set Cooking Time (Medium)
  65. Minimum Moves to Capture The Queen (Medium)
  66. Minimum Operations to Make the Integer Zero (Medium)
  67. Most Frequent Prime (Medium)
  68. Next Closest Time (Medium)
  69. Next Greater Numerically Balanced Number (Medium)
  70. Number of Black Blocks (Medium)
  71. Consecutive Numbers Sum (Hard)
  72. Count Increasing Quadruplets (Hard)
  73. Create Components With Same Value (Hard)
  74. Find the Count of Good Integers (Hard)
  75. Find the Minimum Area to Cover All Ones II (Hard)
  76. Find the Number of Ways to Place People II (Hard)
  77. Frequencies of Shortest Supersequences (Hard)
  78. Largest Palindrome Product (Hard)
  79. Longest Subsequence Repeated k Times (Hard)
  80. Maximize Subarray GCD Score (Hard)
  81. Maximize Subarrays After Removing One Conflicting Pair (Hard)
  82. Maximum Difference Between Even and Odd Frequency II (Hard)
  83. Maximum Good People Based on Statements (Hard)
  84. Maximum Number of Achievable Transfer Requests (Hard)
  85. Maximum Number of Ways to Partition an Array (Hard)
  86. Maximum Score of a Node Sequence (Hard)
  87. Maximum Total Beauty of the Gardens (Hard)
  88. Minimum Cost to Equalize Array (Hard)
  89. Minimum Degree of a Connected Trio in a Graph (Hard)
  90. Minimum Operations to Make Character Frequencies Equal (Hard)
  91. Naming a Company (Hard)
  92. Number of Possible Sets of Closing Branches (Hard)
  93. Partition Array for Maximum XOR and AND (Hard)
  94. Recover the Original Array (Hard)
  95. Smallest Substring With Identical Characters I (Hard)
  96. Split Message Based on Limit (Hard)
  97. Substring With Largest Variance (Hard)
  98. Sum of Imbalance Numbers of All Subarrays (Hard)
  99. Sum of k-Mirror Numbers (Hard)
  100. Super Palindromes (Hard)

Companies that ask enumeration 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