PhantomCodeAIPhantomCodeAI
FeaturesMock InterviewDashboardJobsPricing
FeaturesMock InterviewDashboardJobsPricing
PhantomCodeAIPhantomCodeAI
FeaturesMock InterviewDashboardJobsPricing
FeaturesMock InterviewDashboardJobsPricing
HomeLeetCode ProblemsBit Manipulation

Bit Manipulation Problems

220 Bit Manipulation LeetCode problems · Solve with AI-powered hints & step-by-step explanations.

29Divide Two IntegersMedium67Add BinaryEasy78SubsetsMedium89Gray CodeMedium90Subsets IIMedium136Single NumberEasy137Single Number IIMedium187Repeated DNA SequencesMedium190Reverse BitsEasy191Number of 1 BitsEasy201Bitwise AND of Numbers RangeMedium222Count Complete Tree NodesEasy231Power of TwoEasy260Single Number IIIMedium268Missing NumberEasy287Find the Duplicate NumberMedium318Maximum Product of Word LengthsMedium338Counting BitsEasy342Power of FourEasy371Sum of Two IntegersMedium389Find the DifferenceEasy393UTF-8 ValidationMedium397Integer ReplacementMedium401Binary WatchEasy405Convert a Number to HexadecimalEasy421Maximum XOR of Two Numbers in an ArrayMedium461Hamming DistanceEasy464Can I WinMedium473Matchsticks to SquareMedium476Number ComplementEasy477Total Hamming DistanceMedium491Non-decreasing SubsequencesMedium526Beautiful ArrangementMedium638Shopping OffersMedium645Set MismatchEasy672Bulb Switcher IIMedium691Stickers to Spell WordHard693Binary Number with Alternating BitsEasy698Partition to K Equal Sum SubsetsMedium756Pyramid Transition MatrixMedium762Prime Number of Set Bits in Binary RepresentationEasy779K-th Symbol in GrammarMedium782Transform to ChessboardHard784Letter Case PermutationMedium805Split Array With Same AverageHard810Chalkboard XOR GameHard832Flipping an ImageEasy847Shortest Path Visiting All NodesHard861Score After Flipping MatrixMedium864Shortest Path to Get All KeysHard868Binary GapEasy898Bitwise ORs of SubarraysMedium943Find the Shortest SuperstringHard957Prison Cells After N DaysMedium980Unique Paths IIIHard982Triples with Bitwise AND Equal To ZeroHard995Minimum Number of K Consecutive Bit FlipsHard996Number of Squareful ArraysHard1009Complement of Base 10 IntegerEasy1016Binary String With Substrings Representing 1 To NMedium1018Binary Prefix Divisible By 5Easy1125Smallest Sufficient TeamHard1177Can Make Palindrome from SubstringMedium1178Number of Valid Words for Each PuzzleHard1238Circular Permutation in Binary RepresentationMedium1239Maximum Length of a Concatenated String with Unique CharactersMedium1255Maximum Score Words Formed by LettersHard1284Minimum Number of Flips to Convert Binary Matrix to Zero MatrixHard1310XOR Queries of a SubarrayMedium1318Minimum Flips to Make a OR b Equal to cMedium1342Number of Steps to Reduce a Number to ZeroEasy1349Maximum Students Taking ExamHard1356Sort Integers by The Number of 1 BitsEasy1371Find the Longest Substring Containing Vowels in Even CountsMedium1386Cinema Seat AllocationMedium1404Number of Steps to Reduce a Number in Binary Representation to OneMedium1434Number of Ways to Wear Different Hats to Each OtherHard1442Count Triplets That Can Form Two Arrays of Equal XORMedium1457Pseudo-Palindromic Paths in a Binary TreeMedium1461Check If a String Contains All Binary Codes of Size KMedium1486XOR Operation in an ArrayEasy1494Parallel Courses IIHard1521Find a Value of a Mysterious Function Closest to TargetHard1525Number of Good Ways to Split a StringMedium1542Find Longest Awesome SubstringHard1558Minimum Numbers of Function Calls to Make Target ArrayMedium1595Minimum Cost to Connect Two Groups of PointsHard1601Maximum Number of Achievable Transfer RequestsHard1611Minimum One Bit Operations to Make Integers ZeroHard1617Count Subtrees With Max Distance Between CitiesHard1655Distribute Repeating IntegersHard1659Maximize Grid HappinessHard1680Concatenation of Consecutive Binary NumbersMedium1681Minimum IncompatibilityHard1684Count the Number of Consistent StringsEasy1707Maximum XOR With an Element From ArrayHard1720Decode XORed ArrayEasy1723Find Minimum Time to Finish All JobsHard1734Decode XORed PermutationMedium1738Find Kth Largest XOR Coordinate ValueMedium1755Closest Subsequence SumHard1763Longest Nice SubstringEasy1787Make the XOR of All Segments Equal to ZeroHard1799Maximize Score After N OperationsHard1803Count Pairs With XOR in a RangeHard1815Maximum Number of Groups Getting Fresh DonutsHard1829Maximum XOR for Each QueryMedium1835Find XOR Sum of All Pairs Bitwise ANDHard1863Sum of All Subset XOR TotalsEasy1879Minimum XOR Sum of Two ArraysHard1915Number of Wonderful SubstringsMedium1930Unique Length-3 Palindromic SubsequencesMedium1938Maximum Genetic Difference QueryHard1947Maximum Compatibility Score SumMedium1986Minimum Number of Work Sessions to Finish the TasksMedium1994The Number of Good SubsetsHard2002Maximum Product of the Length of Two Palindromic SubsequencesMedium2032Two Out of ThreeEasy2035Partition Array Into Two Arrays to Minimize Sum DifferenceHard2044Count Number of Maximum Bitwise-OR SubsetsMedium2135Count Words Obtained After Adding a LetterMedium2151Maximum Good People Based on StatementsHard2157Groups of StringsHard2172Maximum AND Sum of ArrayHard2206Divide Array Into Equal PairsEasy2212Maximum Points in an Archery CompetitionMedium2220Minimum Bit Flips to Convert NumberEasy2275Largest Combination With Bitwise AND Greater Than ZeroMedium2305Fair Distribution of CookiesMedium2306Naming a CompanyHard2317Maximum XOR After Operations Medium2322Minimum Score After Removals on a TreeHard2351First Letter to Appear TwiceEasy2354Number of Excellent PairsHard2397Maximum Rows Covered by ColumnsMedium2401Longest Nice SubarrayMedium2411Smallest Subarrays With Maximum Bitwise ORMedium2419Longest Subarray With Maximum Bitwise ANDMedium2425Bitwise XOR of All PairingsMedium2429Minimize XORMedium2433Find The Original Array of Prefix XorMedium2438Range Product Queries of PowersMedium2506Count Pairs Of Similar StringsEasy2527Find Xor-Beauty of ArrayMedium2546Apply Bitwise Operations to Make Strings EqualMedium2564Substring XOR QueriesMedium2568Minimum Impossible ORMedium2571Minimum Operations to Reduce an Integer to 0Medium2572Count the Number of Square-Free SubsetsMedium2588Count the Number of Beautiful SubarraysMedium2595Number of Even and Odd BitsEasy2657Find the Prefix Common Array of Two ArraysMedium2680Maximum ORMedium2683Neighboring Bitwise XORMedium2708Maximum Strength of a GroupMedium2732Find a Good Subset of the MatrixHard2741Special PermutationsMedium2749Minimum Operations to Make the Integer ZeroMedium2791Count Paths That Can Form a Palindrome in a TreeHard2835Minimum Operations to Form Subsequence With Target SumHard2836Maximize Value of Function in a Ball Passing GameHard2857Count Pairs of Points With Distance kMedium2859Sum of Values at Indices With K Set BitsEasy2869Minimum Operations to Collect ElementsEasy2871Split Array Into Maximum Number of SubarraysMedium2897Apply Operations on Array to Maximize Sum of SquaresHard2917Find the K-or of an ArrayEasy2920Maximum Points After Collecting Coins From All NodesHard2932Maximum Strong Pair XOR IEasy2935Maximum Strong Pair XOR IIHard2939Maximum Xor ProductMedium2959Number of Possible Sets of Closing BranchesHard2980Check if Bitwise OR Has Trailing ZerosEasy2997Minimum Number of Operations to Make Array XOR Equal to KMedium3003Maximize the Number of Partitions After OperationsHard3007Maximum Number That Sum of the Prices Is Less Than or Equal to KMedium3011Find if Array Can Be SortedMedium3022Minimize OR of Remaining Elements Using OperationsHard3068Find the Maximum Sum of Node ValuesHard3095Shortest Subarray With OR at Least K IEasy3097Shortest Subarray With OR at Least K IIMedium3108Minimum Cost Walk in Weighted GraphHard3116Kth Smallest Amount With Single Denomination CombinationHard3117Minimum Sum of Values by Dividing ArrayHard3133Minimum Array EndMedium3145Find Products of Elements of Big ArrayHard3149Find the Minimum Cost Array PermutationHard3154Find Number of Ways to Reach the K-th StairHard3158Find the XOR of Numbers Which Appear TwiceEasy3171Find Subarray With Bitwise OR Closest to KHard3181Maximum Total Reward Using Operations IIHard3191Minimum Operations to Make Binary Array Elements Equal to One IMedium3209Number of Subarrays With AND Value of KHard3211Generate Binary Strings Without Adjacent ZerosMedium3226Number of Bit Changes to Make Two Integers EqualEasy3276Select Cells in Grid With Maximum ScoreHard3283Maximum Number of Moves to Kill All PawnsHard3287Find the Maximum Sequence Value of ArrayHard3304Find the K-th Character in String Game IEasy3307Find the K-th Character in String Game IIHard3309Maximum Possible Number by Binary ConcatenationMedium3314Construct the Minimum Bitwise Array IEasy3315Construct the Minimum Bitwise Array IIMedium3370Smallest Number With All Set BitsEasy3376Minimum Time to Break Locks IMedium3393Count Paths With the Given XOR ValueMedium3435Frequencies of Shortest SupersequencesHard3444Minimum Increments for Target Multiples in an ArrayHard3495Minimum Operations to Make Array Elements ZeroHard3513Number of Unique XOR Triplets IMedium3514Number of Unique XOR Triplets IIMedium3530Maximum Profit from Valid Topological Order in DAGHard3533Concatenated DivisibilityHard3539Find Sum of Array Product of Magical SequencesHard3566Partition Array into Two Equal Product SubsetsMedium3568Minimum Moves to Clean the ClassroomMedium3575Maximum Good Subtree ScoreHard3594Minimum Time to Transport All IndividualsHard3599Partition Array to Minimize XORMedium3615Longest Palindromic Path in GraphHard
← 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.