Skip to content
Use code for 50% offSee plans

Enumeration Problems

118 Enumeration LeetCode problems · Solve with AI-powered hints & step-by-step explanations.

Learn the coding interview patterns behind these problems.

Start with these

All Enumeration problems

204 Count Primes Medium479 Largest Palindrome Product Hard816 Ambiguous Coordinates Medium829 Consecutive Numbers Sum Hard845 Longest Mountain in Array Medium869 Reordered Power of 2 Medium906 Super Palindromes Hard949 Largest Time for Given Digits Medium970 Powerful Integers Medium1291 Sequential Digits Medium1534 Count Good Triplets Easy1566 Detect Pattern of Length M Repeated K or More Times Easy1601 Maximum Number of Achievable Transfer Requests Hard1617 Count Subtrees With Max Distance Between Cities Hard1620 Coordinate With Maximum Network Quality Medium1625 Lexicographically Smallest String After Applying Operations Medium1638 Count Substrings That Differ by One Character Medium1761 Minimum Degree of a Connected Trio in a Graph Hard1849 Splitting a String Into Descending Consecutive Values Medium1863 Sum of All Subset XOR Totals Easy1925 Count Square Sum Triples Easy1952 Three Divisors Easy1958 Check if Move is Legal Medium1995 Count Special Quadruplets Easy2014 Longest Subsequence Repeated k Times Hard2018 Check if Word Can Be Placed In Crossword Medium2025 Maximum Number of Ways to Partition an Array Hard2044 Count Number of Maximum Bitwise-OR Subsets Medium2048 Next Greater Numerically Balanced Number Medium2081 Sum of k-Mirror Numbers Hard2094 Finding 3-Digit Even Numbers Easy2122 Recover the Original Array Hard2151 Maximum Good People Based on Statements Hard2162 Minimum Cost to Set Cooking Time Medium2171 Removing Minimum Number of Magic Beans Medium2212 Maximum Points in an Archery Competition Medium2232 Minimize Result by Adding Parentheses to Expression Medium2234 Maximum Total Beauty of the Gardens Hard2240 Number of Ways to Buy Pens and Pencils Medium2242 Maximum Score of a Node Sequence Hard2249 Count Lattice Points Inside a Circle Medium2259 Remove Digit From Number to Maximize Result Easy2261 K Divisible Elements Subarrays Medium2306 Naming a Company Hard2309 Greatest English Letter in Upper and Lower Case Easy2310 Sum of Numbers With Units Digit K Medium2367 Number of Arithmetic Triplets Easy2397 Maximum Rows Covered by Columns Medium2427 Number of Common Factors Easy2437 Number of Valid Clock Times Easy2440 Create Components With Same Value Hard2443 Sum of Number and Its Reverse Medium2468 Split Message Based on Limit Hard2552 Count Increasing Quadruplets Hard2605 Form Smallest Number From Two Digit Arrays Easy2708 Maximum Strength of a Group Medium2735 Collecting Chocolates Medium2749 Minimum Operations to Make the Integer Zero Medium2761 Prime Pairs With Target Sum Medium2765 Longest Alternating Subarray Easy2768 Number of Black Blocks Medium2778 Sum of Squares of Special Elements Easy2800 Shortest String That Contains Three Strings Medium2843 Count Symmetric Integers Easy2844 Minimum Operations to Make a Special Number Medium2860 Happy Students Medium2928 Distribute Candies Among Children I Easy2929 Distribute Candies Among Children II Medium2934 Minimum Operations to Maximize Last Elements in Arrays Medium2947 Count Beautiful Substrings I Medium2951 Find the Peaks Easy2959 Number of Possible Sets of Closing Branches Hard2970 Count the Number of Incremovable Subarrays I Easy2975 Maximum Square Area by Removing Fences From a Field Medium3001 Minimum Moves to Capture The Queen Medium3010 Divide an Array Into Subarrays With Minimum Cost I Easy3020 Find the Maximum Number of Elements in Subset Medium3025 Find the Number of Ways to Place People I Medium3027 Find the Number of Ways to Place People II Hard3044 Most Frequent Prime Medium3091 Apply Operations to Make Sum of Array Greater Than or Equal to k Medium3114 Latest Time You Can Obtain After Replacing Characters Easy3127 Make a Square with the Same Color Easy3132 Find the Integer Added to Array II Medium3139 Minimum Cost to Equalize Array Hard3197 Find the Minimum Area to Cover All Ones II Hard3200 Maximum Height of a Triangle Easy3234 Count the Number of Substrings With Dominant Ones Medium3256 Maximum Value Sum by Placing Three Rooks I Hard3257 Maximum Value Sum by Placing Three Rooks II Hard3265 Count Almost Equal Pairs I Medium3267 Count Almost Equal Pairs II Hard3272 Find the Count of Good Integers Hard3309 Maximum Possible Number by Binary Concatenation Medium3345 Smallest Divisible Digit Product I Easy3371 Identify the Largest Outlier in an Array Medium3380 Maximum Area Rectangle With Point Constraints I Medium3389 Minimum Operations to Make Character Frequencies Equal Hard3398 Smallest Substring With Identical Characters I Hard3403 Find the Lexicographically Largest String From the Box I Medium3404 Count Special Subsequences Medium3411 Maximum Subarray With Equal Products Easy3434 Maximum Frequency After Subarray Operation Medium3435 Frequencies of Shortest Supersequences Hard3440 Reschedule Meetings for Maximum Free Time II Medium3445 Maximum Difference Between Even and Odd Frequency II Hard3470 Permutations IV Hard3480 Maximize Subarrays After Removing One Conflicting Pair Hard3483 Unique 3-Digit Even Numbers Easy3499 Maximize Active Section with Trade I Medium3503 Longest Palindrome After Substring Concatenation I Medium3514 Number of Unique XOR Triplets II Medium3546 Equal Sum Grid Partition I Medium3548 Equal Sum Grid Partition II Hard3566 Partition Array into Two Equal Product Subsets Medium3574 Maximize Subarray GCD Score Hard3588 Find Maximum Area of a Triangle Medium3630 Partition Array for Maximum XOR and AND Hard