Counting | LeetCode Problems

52 Counting solutions to LeetCode solutions.

Counting Problems View all solutions →

Majority Element

#169 Easy

Majority Element II

#229 Medium

Bulls and Cows

#299 Medium

Top K Frequent Elements

#347 Medium

Ransom Note

#383 Easy

First Unique Character in a String

#387 Easy

Sort Characters By Frequency

#451 Medium

Longest Harmonious Subsequence

#594 Easy

Task Scheduler

#621 Medium

Top K Frequent Words

#692 Medium

Reorganize String

#767 Medium

Subdomain Visit Count

#811 Medium

Most Common Word

#819 Easy

Reordered Power of 2

#869 Medium

Uncommon Words from Two Sentences

#884 Easy

RLE Iterator

#900 Medium

X of a Kind in a Deck of Cards

#914 Medium

3Sum With Multiplicity

#923 Medium

Minimum Increment to Make Array Unique

#945 Medium

Subarrays with K Different Integers

#992 Hard

Pairs of Songs With Total Durations Divisible by 60

#1010 Medium

Distant Barcodes

#1054 Medium

Letter Tile Possibilities

#1079 Medium

Largest Values From Labels

#1090 Medium

Number of Equivalent Domino Pairs

#1128 Easy

Find Words That Can Be Formed by Characters

#1160 Easy

Maximum Number of Balloons

#1189 Easy

Split a String in Balanced Strings

#1221 Easy

Count Servers that Communicate

#1267 Medium

Minimum Number of Steps to Make Two Strings Anagram

#1347 Medium

Sort Integers by The Number of 1 Bits

#1356 Easy

Rank Teams by Votes

#1366 Medium

Increasing Decreasing String

#1370 Easy

Find Lucky Integer in an Array

#1394 Easy

Construct K Palindrome Strings

#1400 Medium

Minimum Number of Frogs Croaking

#1419 Medium

Least Number of Unique Integers after K Removals

#1481 Medium

Check If Array Pairs Are Divisible by k

#1497 Medium

Number of Good Pairs

#1512 Easy

Number of Nodes in the Sub-Tree With the Same Label

#1519 Medium

Design Parking System

#1603 Easy

Determine if Two Strings Are Close

#1657 Medium

Tuple with Same Product

#1726 Medium

Sum of Unique Elements

#1748 Easy

Check if One String Swap Can Make Strings Equal

#1790 Easy

Kth Distinct String in an Array

#2053 Medium

Count Common Words With One Occurrence

#2085 Easy

Divide Array Into Equal Pairs

#2206 Easy

Minimum Rounds to Complete All Tasks

#2244 Medium

Count Number of Bad Pairs

#2364 Medium

Maximum Count of Positive Integer and Negative Integer

#2529 Easy

Minimum Length of String After Operations

#3223 Medium