PhantomCodeAI
Features
Mock Interview
Dashboard
Jobs
Pricing
Resources
Help
Features
Mock Interview
Dashboard
Jobs
Pricing
Resources
Help
PhantomCodeAI
Features
Mock Interview
Dashboard
Jobs
Pricing
Resources
Help
Features
Mock Interview
Dashboard
Jobs
Pricing
Resources
Help
Home
LeetCode Problems
Counting
Counting
Problems
149 Counting LeetCode problems · Solve with AI-powered hints & step-by-step explanations.
169
Majority Element
Easy
229
Majority Element II
Medium
299
Bulls and Cows
Medium
347
Top K Frequent Elements
Medium
383
Ransom Note
Easy
387
First Unique Character in a String
Easy
451
Sort Characters By Frequency
Medium
594
Longest Harmonious Subsequence
Easy
621
Task Scheduler
Medium
692
Top K Frequent Words
Medium
767
Reorganize String
Medium
811
Subdomain Visit Count
Medium
819
Most Common Word
Easy
869
Reordered Power of 2
Medium
884
Uncommon Words from Two Sentences
Easy
900
RLE Iterator
Medium
914
X of a Kind in a Deck of Cards
Easy
923
3Sum With Multiplicity
Medium
945
Minimum Increment to Make Array Unique
Medium
992
Subarrays with K Different Integers
Hard
1010
Pairs of Songs With Total Durations Divisible by 60
Medium
1054
Distant Barcodes
Medium
1079
Letter Tile Possibilities
Medium
1090
Largest Values From Labels
Medium
1128
Number of Equivalent Domino Pairs
Easy
1160
Find Words That Can Be Formed by Characters
Easy
1189
Maximum Number of Balloons
Easy
1221
Split a String in Balanced Strings
Easy
1267
Count Servers that Communicate
Medium
1347
Minimum Number of Steps to Make Two Strings Anagram
Medium
1356
Sort Integers by The Number of 1 Bits
Easy
1366
Rank Teams by Votes
Medium
1370
Increasing Decreasing String
Easy
1394
Find Lucky Integer in an Array
Easy
1400
Construct K Palindrome Strings
Medium
1419
Minimum Number of Frogs Croaking
Medium
1481
Least Number of Unique Integers after K Removals
Medium
1497
Check If Array Pairs Are Divisible by k
Medium
1512
Number of Good Pairs
Easy
1519
Number of Nodes in the Sub-Tree With the Same Label
Medium
1603
Design Parking System
Easy
1657
Determine if Two Strings Are Close
Medium
1684
Count the Number of Consistent Strings
Easy
1704
Determine if String Halves Are Alike
Easy
1726
Tuple with Same Product
Medium
1737
Change Minimum Characters to Satisfy One of Three Conditions
Medium
1742
Maximum Number of Balls in a Box
Easy
1748
Sum of Unique Elements
Easy
1775
Equal Sum Arrays With Minimum Number of Operations
Medium
1781
Sum of Beauty of All Substrings
Medium
1782
Count Pairs Of Nodes
Hard
1790
Check if One String Swap Can Make Strings Equal
Easy
1814
Count Nice Pairs in an Array
Medium
1819
Number of Different Subsequences GCDs
Hard
1854
Maximum Population Year
Easy
1857
Largest Color Value in a Directed Graph
Hard
1876
Substrings of Size Three with Distinct Characters
Easy
1897
Redistribute Characters to Make All Strings Equal
Easy
1941
Check if All Characters Have Equal Number of Occurrences
Easy
1994
The Number of Good Subsets
Hard
2001
Number of Pairs of Interchangeable Rectangles
Medium
2006
Count Number of Pairs With Absolute Difference K
Easy
2013
Detect Squares
Medium
2014
Longest Subsequence Repeated k Times
Hard
2023
Number of Pairs of Strings With Concatenation Equal to Target
Medium
2025
Maximum Number of Ways to Partition an Array
Hard
2029
Stone Game IX
Medium
2048
Next Greater Numerically Balanced Number
Medium
2053
Kth Distinct String in an Array
Easy
2068
Check Whether Two Strings are Almost Equivalent
Easy
2085
Count Common Words With One Occurrence
Easy
2131
Longest Palindrome by Concatenating Two Letter Words
Medium
2148
Count Elements With Strictly Smaller and Greater Elements
Easy
2150
Find All Lonely Numbers in the Array
Medium
2170
Minimum Operations to Make the Array Alternating
Medium
2182
Construct String With Repeat Limit
Medium
2186
Minimum Number of Steps to Make Two Strings Anagram II
Medium
2190
Most Frequent Number Following Key In an Array
Easy
2206
Divide Array Into Equal Pairs
Easy
2225
Find Players With Zero or One Losses
Medium
2244
Minimum Rounds to Complete All Tasks
Medium
2248
Intersection of Multiple Arrays
Easy
2275
Largest Combination With Bitwise AND Greater Than Zero
Medium
2283
Check if Number Has Equal Digit Count and Digit Value
Easy
2284
Sender With Largest Word Count
Medium
2287
Rearrange Characters to Make Target String
Easy
2341
Maximum Number of Pairs in Array
Easy
2347
Best Poker Hand
Easy
2351
First Letter to Appear Twice
Easy
2364
Count Number of Bad Pairs
Medium
2384
Largest Palindromic Number
Medium
2404
Most Frequent Even Element
Easy
2416
Sum of Prefix Scores of Strings
Hard
2423
Remove Letter To Equalize Frequency
Easy
2442
Count Number of Distinct Integers After Reverse Operations
Medium
2453
Destroy Sequential Targets
Medium
2499
Minimum Total Cost to Make Arrays Unequal
Hard
2506
Count Pairs Of Similar Strings
Easy
2514
Count Anagrams
Hard
2526
Find Consecutive Integers from a Data Stream
Medium
2529
Maximum Count of Positive Integer and Negative Integer
Easy
2531
Make Number of Distinct Characters Equal
Medium
2547
Minimum Cost to Split an Array
Hard
2586
Count the Number of Vowel Strings in Range
Easy
2748
Number of Beautiful Pairs
Easy
2833
Furthest Point From Origin
Easy
2856
Minimum Array Length After Pair Removals
Medium
2870
Minimum Number of Operations to Make Array Empty
Medium
2960
Count Tested Devices After Test Operations
Easy
2981
Find Longest Special Substring That Occurs Thrice I
Medium
2982
Find Longest Special Substring That Occurs Thrice II
Medium
3005
Count Elements With Maximum Frequency
Easy
3016
Minimum Number of Pushes to Type Word II
Medium
3035
Maximum Palindromes After Operations
Medium
3039
Apply Operations to Make String Empty
Medium
3044
Most Frequent Prime
Medium
3046
Split the Array
Easy
3071
Minimum Operations to Write the Letter Y on a Grid
Medium
3081
Replace Question Marks in String to Minimize Its Value
Medium
3084
Count Substrings Starting and Ending with Given Character
Medium
3085
Minimum Deletions to Make String K-Special
Medium
3128
Right Triangles
Medium
3137
Minimum Number of Operations to Make Word K-Periodic
Medium
3138
Minimum Length of Anagram Concatenation
Medium
3144
Minimum Substring Partition of Equal Character Frequency
Medium
3153
Sum of Digit Differences of All Pairs
Medium
3184
Count Pairs That Form a Complete Day I
Easy
3185
Count Pairs That Form a Complete Day II
Medium
3186
Maximum Total Damage With Spell Casting
Medium
3223
Minimum Length of String After Operations
Medium
3228
Maximum Number of Operations to Move Ones to the End
Medium
3238
Find the Number of Winning Players
Easy
3265
Count Almost Equal Pairs I
Medium
3267
Count Almost Equal Pairs II
Hard
3312
Sorted GCD Pair Queries
Hard
3335
Total Characters in String After Transformations I
Medium
3337
Total Characters in String After Transformations II
Hard
3371
Identify the Largest Outlier in an Array
Medium
3389
Minimum Operations to Make Character Frequencies Equal
Hard
3438
Find Valid Pair of Adjacent Digits in String
Easy
3442
Maximum Difference Between Even and Odd Frequency I
Easy
3443
Maximum Manhattan Distance After K Changes
Medium
3467
Transform Array by Parity
Easy
3518
Smallest Palindromic Rearrangement II
Hard
3527
Find the Most Common Response
Medium
3541
Find Most Frequent Vowel and Consonant
Easy
3545
Minimum Deletions for At Most K Distinct Characters
Easy
3583
Count Special Triplets
Medium
3591
Check if Any Element Has Prime Frequency
Easy
← Browse all LeetCode problems