PhantomCodeAIPhantomCodeAI
FeaturesMock InterviewDashboardJobsPricing
FeaturesMock InterviewDashboardJobsPricing
PhantomCodeAIPhantomCodeAI
FeaturesMock InterviewDashboardJobsPricing
FeaturesMock InterviewDashboardJobsPricing
HomeLeetCode ProblemsBinary Search

Binary Search Problems

265 Binary Search LeetCode problems · Solve with AI-powered hints & step-by-step explanations.

4Median of Two Sorted ArraysHard33Search in Rotated Sorted ArrayMedium34Find First and Last Position of Element in Sorted ArrayMedium35Search Insert PositionEasy69Sqrt(x)Easy74Search a 2D MatrixMedium81Search in Rotated Sorted Array IIMedium153Find Minimum in Rotated Sorted ArrayMedium154Find Minimum in Rotated Sorted Array IIHard162Find Peak ElementMedium167Two Sum II - Input Array Is SortedMedium209Minimum Size Subarray SumMedium222Count Complete Tree NodesEasy240Search a 2D Matrix IIMedium268Missing NumberEasy275H-Index IIMedium278First Bad VersionEasy287Find the Duplicate NumberMedium300Longest Increasing SubsequenceMedium315Count of Smaller Numbers After SelfHard327Count of Range SumHard349Intersection of Two ArraysEasy350Intersection of Two Arrays IIEasy352Data Stream as Disjoint IntervalsHard354Russian Doll EnvelopesHard363Max Sum of Rectangle No Larger Than KHard367Valid Perfect SquareEasy374Guess Number Higher or LowerEasy378Kth Smallest Element in a Sorted MatrixMedium400Nth DigitMedium410Split Array Largest SumHard441Arranging CoinsEasy456132 PatternMedium475HeatersMedium483Smallest Good BaseHard493Reverse PairsHard497Random Point in Non-overlapping RectanglesMedium528Random Pick with WeightMedium532K-diff Pairs in an ArrayMedium540Single Element in a Sorted ArrayMedium611Valid Triangle NumberMedium633Sum of Square NumbersMedium658Find K Closest ElementsMedium668Kth Smallest Number in Multiplication TableHard704Binary SearchEasy710Random Pick with BlacklistHard713Subarray Product Less Than KMedium718Maximum Length of Repeated SubarrayMedium719Find K-th Smallest Pair DistanceHard729My Calendar IMedium731My Calendar IIMedium732My Calendar IIIHard744Find Smallest Letter Greater Than TargetEasy754Reach a NumberMedium778Swim in Rising WaterHard786K-th Smallest Prime FractionMedium792Number of Matching SubsequencesMedium793Preimage Size of Factorial Zeroes FunctionHard825Friends Of Appropriate AgesMedium826Most Profit Assigning WorkMedium852Peak Index in a Mountain ArrayMedium862Shortest Subarray with Sum at Least KHard875Koko Eating BananasMedium878Nth Magical NumberHard887Super Egg DropHard888Fair Candy SwapEasy902Numbers At Most N Given Digit SetHard911Online ElectionMedium981Time Based Key-Value StoreMedium1004Max Consecutive Ones IIIMedium1011Capacity To Ship Packages Within D DaysMedium1027Longest Arithmetic SubsequenceMedium1044Longest Duplicate SubstringHard1095Find in Mountain ArrayHard1146Snapshot ArrayMedium1157Online Majority Element In SubarrayHard1170Compare Strings by Frequency of the Smallest CharacterMedium1187Make Array Strictly IncreasingHard1201Ugly Number IIIMedium1208Get Equal Substrings Within BudgetMedium1235Maximum Profit in Job SchedulingHard1237Find Positive Integer Solution for a Given EquationMedium1268Search Suggestions SystemMedium1283Find the Smallest Divisor Given a ThresholdMedium1292Maximum Side Length of a Square with Sum Less than or Equal to ThresholdMedium1300Sum of Mutated Array Closest to TargetMedium1337The K Weakest Rows in a MatrixEasy1346Check If N and Its Double ExistEasy1348Tweet Counts Per FrequencyMedium1351Count Negative Numbers in a Sorted MatrixEasy1385Find the Distance Value Between Two ArraysEasy1439Find the Kth Smallest Sum of a Matrix With Sorted RowsHard1477Find Two Non-overlapping Sub-arrays Each With Target SumMedium1482Minimum Number of Days to Make m BouquetsMedium1483Kth Ancestor of a Tree NodeHard1488Avoid Flood in The CityMedium1498Number of Subsequences That Satisfy the Given Sum ConditionMedium1508Range Sum of Sorted Subarray SumsMedium1521Find a Value of a Mysterious Function Closest to TargetHard1539Kth Missing Positive NumberEasy1552Magnetic Force Between Two BallsMedium1562Find Latest Group of Size MMedium1574Shortest Subarray to be Removed to Make Array SortedMedium1608Special Array With X Elements Greater Than or Equal XEasy1631Path With Minimum EffortMedium1648Sell Diminishing-Valued Colored BallsMedium1649Create Sorted Array through InstructionsHard1658Minimum Operations to Reduce X to ZeroMedium1671Minimum Number of Removals to Make Mountain ArrayHard1712Ways to Split Array Into Three SubarraysMedium1713Minimum Operations to Make a SubsequenceHard1739Building BoxesHard1751Maximum Number of Events That Can Be Attended IIHard1760Minimum Limit of Balls in a BagMedium1782Count Pairs Of NodesHard1793Maximum Score of a Good SubarrayHard1802Maximum Value at a Given Index in a Bounded ArrayMedium1818Minimum Absolute Sum DifferenceMedium1838Frequency of the Most Frequent ElementMedium1847Closest RoomHard1851Minimum Interval to Include Each QueryHard1855Maximum Distance Between a Pair of ValuesMedium1862Sum of Floored PairsHard1870Minimum Speed to Arrive on TimeMedium1889Minimum Space Wasted From PackagingHard1894Find the Student that Will Replace the ChalkMedium1898Maximum Number of Removable CharactersMedium1901Find a Peak Element IIMedium1923Longest Common SubpathHard1932Merge BSTs to Create Single BSTHard1954Minimum Garden Perimeter to Collect Enough ApplesMedium1964Find the Longest Valid Obstacle Course at Each PositionHard1970Last Day Where You Can Still CrossHard2008Maximum Earnings From TaxiMedium2009Minimum Number of Operations to Make Array ContinuousHard2024Maximize the Confusion of an ExamMedium2035Partition Array Into Two Arrays to Minimize Sum DifferenceHard2040Kth Smallest Product of Two Sorted ArraysHard2054Two Best Non-Overlapping EventsMedium2055Plates Between CandlesMedium2064Minimized Maximum of Products Distributed to Any StoreMedium2070Most Beautiful Item for Each QueryMedium2071Maximum Number of Tasks You Can AssignHard2080Range Frequency QueriesMedium2089Find Target Indices After Sorting ArrayEasy2106Maximum Fruits Harvested After at Most K StepsHard2111Minimum Operations to Make the Array K-IncreasingHard2141Maximum Running Time of N ComputersHard2179Count Good Triplets in an ArrayHard2187Minimum Time to Complete TripsMedium2223Sum of Scores of Built StringsHard2226Maximum Candies Allocated to K ChildrenMedium2234Maximum Total Beauty of the GardensHard2250Count Number of Rectangles Containing Each PointMedium2251Number of Flowers in Full BloomHard2258Escape the Spreading FireHard2271Maximum White Tiles Covered by a CarpetMedium2286Booking Concert Tickets in GroupsHard2300Successful Pairs of Spells and PotionsMedium2302Count Subarrays With Score Less Than KHard2332The Latest Time to Catch a BusMedium2333Minimum Sum of Squared DifferenceMedium2354Number of Excellent PairsHard2358Maximum Number of Groups Entering a CompetitionMedium2389Longest Subsequence With Limited SumEasy2398Maximum Number of Robots Within BudgetHard2411Smallest Subarrays With Maximum Bitwise ORMedium2424Longest Uploaded PrefixMedium2426Number of Pairs Satisfying InequalityHard2439Minimize Maximum of ArrayMedium2448Minimum Cost to Make Array EqualHard2454Next Greater Element IVHard2468Split Message Based on LimitHard2476Closest Nodes Queries in a Binary Search TreeMedium2498Frog Jump IIMedium2501Longest Square Streak in an ArrayMedium2513Minimize the Maximum of Two ArraysMedium2517Maximum Tastiness of Candy BasketMedium2528Maximize the Minimum Powered CityHard2529Maximum Count of Positive Integer and Negative IntegerEasy2540Minimum Common ValueEasy2554Maximum Number of Integers to Choose From a Range IMedium2555Maximize Win From Two SegmentsMedium2560House Robber IVMedium2563Count the Number of Fair PairsMedium2565Subsequence With the Minimum ScoreHard2576Find the Maximum Number of Marked IndicesMedium2589Minimum Time to Complete All TasksHard2594Minimum Time to Repair CarsMedium2601Prime Subtraction OperationMedium2602Minimum Operations to Make All Array Elements EqualMedium2616Minimize the Maximum Difference of PairsMedium2659Make Array EmptyHard2713Maximum Strictly Increasing Cells in a MatrixHard2736Maximum Sum QueriesHard2779Maximum Beauty of an Array After Applying OperationMedium2790Maximum Number of Groups With Increasing LengthHard2812Find the Safest Path in a GridMedium2817Minimum Absolute Difference Between Elements With ConstraintMedium2824Count Pairs Whose Sum is Less than TargetEasy2826Sorting Three GroupsMedium2830Maximize the Profit as the SalesmanMedium2831Find the Longest Equal SubarrayMedium2856Minimum Array Length After Pair RemovalsMedium2861Maximum Number of AlloysMedium2926Maximum Balanced Subsequence SumHard2940Find Building Where Alice and Bob Can MeetHard2945Find Maximum Non-decreasing Array LengthHard2967Minimum Cost to Make Array EqualindromicMedium2968Apply Operations to Maximize Frequency ScoreHard2970Count the Number of Incremovable Subarrays IEasy2972Count the Number of Incremovable Subarrays IIHard2981Find Longest Special Substring That Occurs Thrice IMedium2982Find Longest Special Substring That Occurs Thrice IIMedium3006Find Beautiful Indices in the Given Array IMedium3007Maximum Number That Sum of the Prices Is Less Than or Equal to KMedium3008Find Beautiful Indices in the Given Array IIHard3048Earliest Second to Mark Indices IMedium3049Earliest Second to Mark Indices IIHard3113Find the Number of Subarrays Where Boundary Elements Are MaximumHard3116Kth Smallest Amount With Single Denomination CombinationHard3117Minimum Sum of Values by Dividing ArrayHard3134Find the Median of the Uniqueness ArrayHard3143Maximum Points Inside the SquareMedium3145Find Products of Elements of Big ArrayHard3152Special Array IIMedium3161Block Placement QueriesHard3171Find Subarray With Bitwise OR Closest to KHard3186Maximum Total Damage With Spell CastingMedium3209Number of Subarrays With AND Value of KHard3261Count Substrings That Satisfy K-Constraint IIHard3281Maximize Score of Numbers in RangesMedium3288Length of the Longest Increasing PathHard3291Minimum Number of Valid Strings to Form Target IMedium3292Minimum Number of Valid Strings to Form Target IIHard3296Minimum Number of Seconds to Make Mountain Height ZeroMedium3312Sorted GCD Pair QueriesHard3346Maximum Frequency of an Element After Performing Operations IMedium3347Maximum Frequency of an Element After Performing Operations IIHard3350Adjacent Increasing Subarrays Detection IIMedium3356Zero Array Transformation IIMedium3357Minimize the Maximum Adjacent Element DifferenceHard3398Smallest Substring With Identical Characters IHard3399Smallest Substring With Identical Characters IIHard3413Maximum Coins From K Consecutive BagsMedium3414Maximum Score of Non-overlapping IntervalsHard3419Minimize the Maximum Edge Weight of GraphMedium3449Maximize the Minimum Game ScoreHard3453Separate Squares IMedium3454Separate Squares IIHard3455Shortest Matching SubstringHard3464Maximize the Distance Between Points on a SquareHard3477Fruits Into Baskets IIEasy3479Fruits Into Baskets IIIMedium3488Closest Equal Element QueriesMedium3501Maximize Active Section with Trade IIHard3508Implement RouterMedium3532Path Existence Queries in a Graph IMedium3534Path Existence Queries in a Graph IIHard3585Find Weighted Median Node in TreeHard3600Maximize Spanning Tree Stability with UpgradesHard3605Minimum Stability Factor of ArrayHard3608Minimum Time for K Connected ComponentsMedium3613Minimize Maximum Component CostMedium3620Network Recovery PathwaysHard
← 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.