PhantomCodeAIPhantomCodeAI
FeaturesMock InterviewDashboardJobsPricing
FeaturesMock InterviewDashboardJobsPricing
PhantomCodeAIPhantomCodeAI
FeaturesMock InterviewDashboardJobsPricing
FeaturesMock InterviewDashboardJobsPricing
HomeLeetCode ProblemsCounting

Counting Problems

149 Counting LeetCode problems · Solve with AI-powered hints & step-by-step explanations.

169Majority ElementEasy229Majority Element IIMedium299Bulls and CowsMedium347Top K Frequent ElementsMedium383Ransom NoteEasy387First Unique Character in a StringEasy451Sort Characters By FrequencyMedium594Longest Harmonious SubsequenceEasy621Task SchedulerMedium692Top K Frequent WordsMedium767Reorganize StringMedium811Subdomain Visit CountMedium819Most Common WordEasy869Reordered Power of 2Medium884Uncommon Words from Two SentencesEasy900RLE IteratorMedium914X of a Kind in a Deck of CardsEasy9233Sum With MultiplicityMedium945Minimum Increment to Make Array UniqueMedium992Subarrays with K Different IntegersHard1010Pairs of Songs With Total Durations Divisible by 60Medium1054Distant BarcodesMedium1079Letter Tile PossibilitiesMedium1090Largest Values From LabelsMedium1128Number of Equivalent Domino PairsEasy1160Find Words That Can Be Formed by CharactersEasy1189Maximum Number of BalloonsEasy1221Split a String in Balanced StringsEasy1267Count Servers that CommunicateMedium1347Minimum Number of Steps to Make Two Strings AnagramMedium1356Sort Integers by The Number of 1 BitsEasy1366Rank Teams by VotesMedium1370Increasing Decreasing StringEasy1394Find Lucky Integer in an ArrayEasy1400Construct K Palindrome StringsMedium1419Minimum Number of Frogs CroakingMedium1481Least Number of Unique Integers after K RemovalsMedium1497Check If Array Pairs Are Divisible by kMedium1512Number of Good PairsEasy1519Number of Nodes in the Sub-Tree With the Same LabelMedium1603Design Parking SystemEasy1657Determine if Two Strings Are CloseMedium1684Count the Number of Consistent StringsEasy1704Determine if String Halves Are AlikeEasy1726Tuple with Same ProductMedium1737Change Minimum Characters to Satisfy One of Three ConditionsMedium1742Maximum Number of Balls in a BoxEasy1748Sum of Unique ElementsEasy1775Equal Sum Arrays With Minimum Number of OperationsMedium1781Sum of Beauty of All SubstringsMedium1782Count Pairs Of NodesHard1790Check if One String Swap Can Make Strings EqualEasy1814Count Nice Pairs in an ArrayMedium1819Number of Different Subsequences GCDsHard1854Maximum Population YearEasy1857Largest Color Value in a Directed GraphHard1876Substrings of Size Three with Distinct CharactersEasy1897Redistribute Characters to Make All Strings EqualEasy1941Check if All Characters Have Equal Number of OccurrencesEasy1994The Number of Good SubsetsHard2001Number of Pairs of Interchangeable RectanglesMedium2006Count Number of Pairs With Absolute Difference KEasy2013Detect SquaresMedium2014Longest Subsequence Repeated k TimesHard2023Number of Pairs of Strings With Concatenation Equal to TargetMedium2025Maximum Number of Ways to Partition an ArrayHard2029Stone Game IXMedium2048Next Greater Numerically Balanced NumberMedium2053Kth Distinct String in an ArrayEasy2068Check Whether Two Strings are Almost EquivalentEasy2085Count Common Words With One OccurrenceEasy2131Longest Palindrome by Concatenating Two Letter WordsMedium2148Count Elements With Strictly Smaller and Greater Elements Easy2150Find All Lonely Numbers in the ArrayMedium2170Minimum Operations to Make the Array AlternatingMedium2182Construct String With Repeat LimitMedium2186Minimum Number of Steps to Make Two Strings Anagram IIMedium2190Most Frequent Number Following Key In an ArrayEasy2206Divide Array Into Equal PairsEasy2225Find Players With Zero or One LossesMedium2244Minimum Rounds to Complete All TasksMedium2248Intersection of Multiple ArraysEasy2275Largest Combination With Bitwise AND Greater Than ZeroMedium2283Check if Number Has Equal Digit Count and Digit ValueEasy2284Sender With Largest Word CountMedium2287Rearrange Characters to Make Target StringEasy2341Maximum Number of Pairs in ArrayEasy2347Best Poker HandEasy2351First Letter to Appear TwiceEasy2364Count Number of Bad PairsMedium2384Largest Palindromic NumberMedium2404Most Frequent Even ElementEasy2416Sum of Prefix Scores of StringsHard2423Remove Letter To Equalize FrequencyEasy2442Count Number of Distinct Integers After Reverse OperationsMedium2453Destroy Sequential TargetsMedium2499Minimum Total Cost to Make Arrays UnequalHard2506Count Pairs Of Similar StringsEasy2514Count AnagramsHard2526Find Consecutive Integers from a Data StreamMedium2529Maximum Count of Positive Integer and Negative IntegerEasy2531Make Number of Distinct Characters EqualMedium2547Minimum Cost to Split an ArrayHard2586Count the Number of Vowel Strings in RangeEasy2748Number of Beautiful PairsEasy2833Furthest Point From OriginEasy2856Minimum Array Length After Pair RemovalsMedium2870Minimum Number of Operations to Make Array EmptyMedium2960Count Tested Devices After Test OperationsEasy2981Find Longest Special Substring That Occurs Thrice IMedium2982Find Longest Special Substring That Occurs Thrice IIMedium3005Count Elements With Maximum FrequencyEasy3016Minimum Number of Pushes to Type Word IIMedium3035Maximum Palindromes After OperationsMedium3039Apply Operations to Make String EmptyMedium3044Most Frequent PrimeMedium3046Split the ArrayEasy3071Minimum Operations to Write the Letter Y on a GridMedium3081Replace Question Marks in String to Minimize Its ValueMedium3084Count Substrings Starting and Ending with Given CharacterMedium3085Minimum Deletions to Make String K-SpecialMedium3128Right TrianglesMedium3137Minimum Number of Operations to Make Word K-PeriodicMedium3138Minimum Length of Anagram ConcatenationMedium3144Minimum Substring Partition of Equal Character FrequencyMedium3153Sum of Digit Differences of All PairsMedium3184Count Pairs That Form a Complete Day IEasy3185Count Pairs That Form a Complete Day IIMedium3186Maximum Total Damage With Spell CastingMedium3223Minimum Length of String After OperationsMedium3228Maximum Number of Operations to Move Ones to the EndMedium3238Find the Number of Winning PlayersEasy3265Count Almost Equal Pairs IMedium3267Count Almost Equal Pairs IIHard3312Sorted GCD Pair QueriesHard3335Total Characters in String After Transformations IMedium3337Total Characters in String After Transformations IIHard3371Identify the Largest Outlier in an ArrayMedium3389Minimum Operations to Make Character Frequencies EqualHard3438Find Valid Pair of Adjacent Digits in StringEasy3442Maximum Difference Between Even and Odd Frequency IEasy3443Maximum Manhattan Distance After K ChangesMedium3467Transform Array by ParityEasy3518Smallest Palindromic Rearrangement IIHard3527Find the Most Common ResponseMedium3541Find Most Frequent Vowel and ConsonantEasy3545Minimum Deletions for At Most K Distinct CharactersEasy3583Count Special TripletsMedium3591Check if Any Element Has Prime FrequencyEasy
← Browse all LeetCode problems
PhantomCodeAIPhantomCodeAI
PhantomCodeAI is an undetectable desktop application to help you pass your Leetcode interviews.
All systems online
Download

Legal

Refund PolicyTerms of ServiceCancellation PolicyPrivacy Policy

Pages

Contact SupportHelp CenterInstant SupportFAQBlogFeaturesInterview CopilotCoding CopilotInterview QuestionsPricingMock Interview PricingEarn with UsBest AI Interview Assistants 2026FeedbackLeetcode ProblemsLoginCreate Account

Compare

All 29 comparisons →Why switch (29 alternatives) →Interview Coder AlternativeFinal Round AI AlternativeUltraCode AI AlternativeParakeet AI AlternativeAI Apply AlternativeCoderRank AlternativeInterviewing.io AlternativeShadeCoder Alternative

Resources

Salary GuideResume TemplatesWhat Is PhantomCodeAIIs PhantomCodeAI Detectable?Use PhantomCodeAI in HackerRankvs LeetCode PremiumFor European EngineersFor FAANG Interview PrepPost-Layoff ComebackIndia Pricing (INR)

Interview Types

Coding InterviewSystem Design InterviewDSA InterviewLeetCode InterviewAlgorithms InterviewData Structure InterviewSQL InterviewOnline Assessment

Interview Questions

See all →
GoogleAmazonMetaMicrosoftAppleNetflixStripeUberAirbnbBloombergSoftware EngineerFrontend EngineerBackend EngineerData EngineerML EngineerDevOps EngineerData ScientistEngineering ManagerBehavioralSystem Design

Mock Interview by Round Type

All formats →
Mock Interview HubMock Coding InterviewMock Behavioral InterviewMock System Design

AI for Industry Interviews

All industries →
Sales InterviewsPM InterviewsFinance InterviewsConsulting InterviewsDesign Interviews

Coding Interview Patterns

See all patterns →
Coding Interviews HubDynamic ProgrammingTwo Pointers + Sliding WindowGraph AlgorithmsTree AlgorithmsBinary Search

Interview Guides

See all guides →
How to Ace an InterviewHow to Crack InterviewsBest Interview AnswersScreening Interview QuestionsTelephone Interview TipsWorking Interview ExplainedCracking the PM InterviewFAANG 30-Day RoadmapTop 10 LeetCode PatternsSystem Design Prep GuideSTAR Behavioral MethodBehavioral Interview Qs

Alternatives — why engineers switch

See all 29 →
Interview CoderFinal Round AIParakeet AILockedIn AIUltraCode AIShadeCoderSensei AIVerve AICluelyChatGPTBeyz AIInterview SidekickYoodliAlgoMonsterCoderRankExponentFormationInterviewing.ioInterview CakeBig InterviewInterview KickstartPrampScalerAI ApplyCareerflowJobscanKickresumeTeal HQHireVue

AI Interview Tools

AI Interview AssistantAI Interview CoachAI for Job InterviewsAI Interview Preparation ToolReal-Time AI Interview AnswersInterview AI HelperReal-Time AI Interview AssistantAI Interview BotBest AI Interview Tools 2026AI Interview QuestionsPractice Interview QuestionsAI to Answer Interview QuestionsAI Phone Interview HelpAI Interviewing SoftwareAI Interview HubInterview CopilotAI Coding Interview AssistantMock Interview

© 2026 PhantomCodeAI. All rights reserved.