Tag: counting
- 3Sum With Multiplicity
- Apply Operations to Make String Empty
- Best Poker Hand
- Better Compression of String
- Bulls and Cows
- Change Minimum Characters to Satisfy One of Three Conditions
- Check if All Characters Have Equal Number of Occurrences
- Check If Array Pairs Are Divisible by k
- Check if Number Has Equal Digit Count and Digit Value
- Check if One String Swap Can Make Strings Equal
- Check If Two Expression Trees are Equivalent
- Check Whether Two Strings are Almost Equivalent
- Construct K Palindrome Strings
- Construct String With Repeat Limit
- Count Almost Equal Pairs I
- Count Almost Equal Pairs II
- Count Anagrams
- Count Common Words With One Occurrence
- Count Elements With Maximum Frequency
- Count Elements With Strictly Smaller and Greater Elements
- Count Nice Pairs in an Array
- Count Number of Bad Pairs
- Count Number of Distinct Integers After Reverse Operations
- Count Number of Pairs With Absolute Difference K
- Count Pairs Of Similar Strings
- Count Pairs That Form a Complete Day I
- Count Pairs That Form a Complete Day II
- Count Servers that Communicate
- Count Substrings Starting and Ending with Given Character
- Count Tested Devices After Test Operations
- Count the Number of Consistent Strings
- Count the Number of Good Subsequences
- Count the Number of Vowel Strings in Range
- Design Parking System
- Destroy Sequential Targets
- Detect Squares
- Determine if String Halves Are Alike
- Determine if Two Strings Are Close
- Distant Barcodes
- Divide Array Into Equal Pairs
- Divide Array Into Increasing Sequences
- Equal Sum Arrays With Minimum Number of Operations
- Find All Lonely Numbers in the Array
- Find Consecutive Integers from a Data Stream
- Find Longest Special Substring That Occurs Thrice I
- Find Longest Special Substring That Occurs Thrice II
- Find Lucky Integer in an Array
- Find Players With Zero or One Losses
- Find Smallest Common Element in All Rows
- Find the Number of Winning Players
- Find Valid Pair of Adjacent Digits in String
- Find Words That Can Be Formed by Characters
- First Letter to Appear Twice
- First Unique Character in a String
- Furthest Point From Origin
- Identify the Largest Outlier in an Array
- Increasing Decreasing String
- Intersection of Multiple Arrays
- Intersection of Three Sorted Arrays
- Kth Distinct String in an Array
- Largest Color Value in a Directed Graph
- Largest Combination With Bitwise AND Greater Than Zero
- Largest Palindromic Number
- Largest Values From Labels
- Least Number of Unique Integers after K Removals
- Letter Tile Possibilities
- Linked List Frequency
- Longest Common Subsequence Between Sorted Arrays
- Longest Harmonious Subsequence
- Longest Palindrome by Concatenating Two Letter Words
- Longest Subsequence Repeated k Times
- Majority Element II
- Majority Element
- Make Number of Distinct Characters Equal
- Maximum Count of Positive Integer and Negative Integer
- Maximum Difference Between Even and Odd Frequency I
- Maximum Manhattan Distance After K Changes
- Maximum Number of Balloons
- Maximum Number of Balls in a Box
- Maximum Number of Operations to Move Ones to the End
- Maximum Number of Pairs in Array
- Maximum Number of Ways to Partition an Array
- Maximum Palindromes After Operations
- Maximum Population Year
- Maximum Total Area Occupied by Pistons
- Maximum Total Damage With Spell Casting
- Minimum Array Length After Pair Removals
- Minimum Cost to Split an Array
- Minimum Deletions to Make String K-Special
- Minimum Increment to Make Array Unique
- Minimum Length of Anagram Concatenation
- Minimum Length of String After Operations
- Minimum Number of Frogs Croaking
- Minimum Number of Keypresses
- Minimum Number of Operations to Make Array Empty
- Minimum Number of Operations to Make Word K-Periodic
- Minimum Number of Pushes to Type Word II
- Minimum Number of Steps to Make Two Strings Anagram II
- Minimum Number of Steps to Make Two Strings Anagram
- Minimum Operations to Make Character Frequencies Equal
- Minimum Operations to Make the Array Alternating
- Minimum Operations to Write the Letter Y on a Grid
- Minimum Rounds to Complete All Tasks
- Minimum Substring Partition of Equal Character Frequency
- Minimum Total Cost to Make Arrays Unequal
- Most Common Word
- Most Frequent Even Element
- Most Frequent Number Following Key In an Array
- Most Frequent Prime
- Next Greater Numerically Balanced Number
- Number of Beautiful Pairs
- Number of Different Subsequences GCDs
- Number of Divisible Substrings
- Number of Equal Count Substrings
- Number of Equivalent Domino Pairs
- Number of Good Pairs
- Number of Nodes in the Sub-Tree With the Same Label
- Number of Pairs of Interchangeable Rectangles
- Number of Pairs of Strings With Concatenation Equal to Target
- Number of Same-End Substrings
- Number of Unique Categories
- Pairs of Songs With Total Durations Divisible by 60
- Rank Teams by Votes
- Ransom Note
- Rearrange Characters to Make Target String
- Rearrange String k Distance Apart
- Redistribute Characters to Make All Strings Equal
- Remove Letter To Equalize Frequency
- Reordered Power of 2
- Reorganize String
- Replace Question Marks in String to Minimize Its Value
- Right Triangles
- RLE Iterator
- Sender With Largest Word Count
- Sort Characters By Frequency
- Sort Integers by The Number of 1 Bits
- Sorted GCD Pair Queries
- Split a String in Balanced Strings
- Split the Array
- Stone Game IX
- Subarrays with K Different Integers
- Subdomain Visit Count
- Substrings of Size Three with Distinct Characters
- Substrings That Begin and End With the Same Letter
- Sum of Beauty of All Substrings
- Sum of Digit Differences of All Pairs
- Sum of Prefix Scores of Strings
- Sum of Unique Elements
- Task Scheduler
- Top K Frequent Elements
- Top K Frequent Words
- Total Characters in String After Transformations I
- Total Characters in String After Transformations II
- Transform Array by Parity
- Tuple with Same Product
- Uncommon Words from Two Sentences
- Unique Substrings With Equal Digit Frequency
- X of a Kind in a Deck of Cards