PhantomCodeAIPhantomCodeAI
FeaturesMock InterviewDashboardJobsPricing
FeaturesMock InterviewDashboardJobsPricing
PhantomCodeAIPhantomCodeAI
FeaturesMock InterviewDashboardJobsPricing
FeaturesMock InterviewDashboardJobsPricing
HomeLeetCode ProblemsBreadth-First Search

Breadth-First Search Problems

197 Breadth-First Search LeetCode problems · Solve with AI-powered hints & step-by-step explanations.

100Same TreeEasy101Symmetric TreeEasy102Binary Tree Level Order TraversalMedium103Binary Tree Zigzag Level Order TraversalMedium104Maximum Depth of Binary TreeEasy107Binary Tree Level Order Traversal IIMedium111Minimum Depth of Binary TreeEasy112Path SumEasy116Populating Next Right Pointers in Each NodeMedium117Populating Next Right Pointers in Each Node IIMedium126Word Ladder IIHard127Word LadderHard130Surrounded RegionsMedium133Clone GraphMedium199Binary Tree Right Side ViewMedium200Number of IslandsMedium207Course ScheduleMedium210Course Schedule IIMedium226Invert Binary TreeEasy279Perfect SquaresMedium297Serialize and Deserialize Binary TreeHard301Remove Invalid ParenthesesHard310Minimum Height TreesMedium322Coin ChangeMedium329Longest Increasing Path in a MatrixHard365Water and Jug ProblemMedium399Evaluate DivisionMedium404Sum of Left LeavesEasy407Trapping Rain Water IIHard417Pacific Atlantic Water FlowMedium429N-ary Tree Level Order TraversalMedium433Minimum Genetic MutationMedium449Serialize and Deserialize BSTMedium463Island PerimeterEasy488Zuma GameHard513Find Bottom Left Tree ValueMedium514Freedom TrailHard515Find Largest Value in Each Tree RowMedium529MinesweeperMedium530Minimum Absolute Difference in BSTEasy54201 MatrixMedium547Number of ProvincesMedium559Maximum Depth of N-ary TreeEasy617Merge Two Binary TreesEasy623Add One Row to TreeMedium637Average of Levels in Binary TreeEasy653Two Sum IV - Input is a BSTEasy655Print Binary TreeMedium662Maximum Width of Binary TreeMedium672Bulb Switcher IIMedium675Cut Off Trees for Golf EventHard684Redundant ConnectionMedium685Redundant Connection IIHard690Employee ImportanceMedium695Max Area of IslandMedium721Accounts MergeMedium733Flood FillEasy743Network Delay TimeMedium749Contain VirusHard752Open the LockMedium756Pyramid Transition MatrixMedium765Couples Holding HandsHard773Sliding PuzzleHard778Swim in Rising WaterHard783Minimum Distance Between BST NodesEasy785Is Graph Bipartite?Medium787Cheapest Flights Within K StopsMedium797All Paths From Source to TargetMedium802Find Eventual Safe StatesMedium815Bus RoutesHard827Making A Large IslandHard839Similar String GroupsHard841Keys and RoomsMedium847Shortest Path Visiting All NodesHard854K-Similar StringsHard863All Nodes Distance K in Binary TreeMedium864Shortest Path to Get All KeysHard865Smallest Subtree with all the Deepest NodesMedium886Possible BipartitionMedium909Snakes and LaddersMedium919Complete Binary Tree InserterMedium924Minimize Malware SpreadHard928Minimize Malware Spread IIHard934Shortest BridgeMedium958Check Completeness of a Binary TreeMedium959Regions Cut By SlashesMedium965Univalued Binary TreeEasy967Numbers With Same Consecutive DifferencesMedium987Vertical Order Traversal of a Binary TreeHard993Cousins in Binary TreeEasy994Rotting OrangesMedium1020Number of EnclavesMedium1034Coloring A BorderMedium1036Escape a Large MazeHard1042Flower Planting With No AdjacentMedium1091Shortest Path in Binary MatrixMedium1096Brace Expansion IIHard1123Lowest Common Ancestor of Deepest LeavesMedium1129Shortest Path with Alternating ColorsMedium1161Maximum Level Sum of a Binary TreeMedium1162As Far from Land as PossibleMedium1202Smallest String With SwapsMedium1203Sort Items by Groups Respecting DependenciesHard1210Minimum Moves to Reach Target with RotationsHard1254Number of Closed IslandsMedium1261Find Elements in a Contaminated Binary TreeMedium1263Minimum Moves to Move a Box to Their Target LocationHard1267Count Servers that CommunicateMedium1284Minimum Number of Flips to Convert Binary Matrix to Zero MatrixHard1293Shortest Path in a Grid with Obstacles EliminationHard1298Maximum Candies You Can Get from BoxesHard1302Deepest Leaves SumMedium1306Jump Game IIIMedium1311Get Watched Videos by Your FriendsMedium1315Sum of Nodes with Even-Valued GrandparentMedium1319Number of Operations to Make Network ConnectedMedium1345Jump Game IVHard1361Validate Binary Tree NodesMedium1368Minimum Cost to Make at Least One Valid Path in a GridHard1376Time Needed to Inform All EmployeesMedium1377Frog Position After T SecondsHard1379Find a Corresponding Node of a Binary Tree in a Clone of That TreeEasy1391Check if There is a Valid Path in a GridMedium1443Minimum Time to Collect All Apples in a TreeMedium1448Count Good Nodes in Binary TreeMedium1457Pseudo-Palindromic Paths in a Binary TreeMedium1462Course Schedule IVMedium1466Reorder Routes to Make All Paths Lead to the City ZeroMedium1483Kth Ancestor of a Tree NodeHard1519Number of Nodes in the Sub-Tree With the Same LabelMedium1559Detect Cycles in 2D GridMedium1568Minimum Number of Days to Disconnect IslandHard1609Even Odd TreeMedium1625Lexicographically Smallest String After Applying OperationsMedium1631Path With Minimum EffortMedium1654Minimum Jumps to Reach HomeMedium1765Map of Highest PeakMedium1905Count Sub IslandsMedium1926Nearest Exit from Entrance in MazeMedium1970Last Day Where You Can Still CrossHard1971Find if Path Exists in GraphEasy1992Find All Groups of FarmlandMedium1993Operations on TreeMedium2039The Time When the Network Becomes IdleMedium2045Second Minimum Time to Reach DestinationHard2059Minimum Operations to Convert NumberMedium2092Find All People With SecretHard2101Detonate the Maximum BombsMedium2146K Highest Ranked Items Within a Price RangeMedium2192All Ancestors of a Node in a Directed Acyclic GraphMedium2258Escape the Spreading FireHard2290Minimum Obstacle Removal to Reach CornerHard2316Count Unreachable Pairs of Nodes in an Undirected GraphMedium2328Number of Increasing Paths in a GridHard2360Longest Cycle in a GraphHard2368Reachable Nodes With RestrictionsMedium2385Amount of Time for Binary Tree to Be InfectedMedium2415Reverse Odd Levels of Binary TreeMedium2458Height of Binary Tree After Subtree Removal QueriesHard2467Most Profitable Path in a TreeMedium2471Minimum Number of Operations to Sort a Binary Tree by LevelMedium2477Minimum Fuel Cost to Report to the CapitalMedium2492Minimum Score of a Path Between Two CitiesMedium2493Divide Nodes Into the Maximum Number of GroupsHard2503Maximum Number of Points From Grid QueriesHard2556Disconnect Path in a Binary Matrix by at Most One FlipMedium2577Minimum Time to Visit a Cell In a GridHard2583Kth Largest Sum in a Binary TreeMedium2596Check Knight Tour ConfigurationMedium2608Shortest Cycle in a GraphHard2612Minimum Reverse OperationsHard2617Minimum Number of Visited Cells in a GridHard2641Cousins in Binary Tree IIMedium2658Maximum Number of Fish in a GridMedium2685Count the Number of Complete ComponentsMedium2812Find the Safest Path in a GridMedium2850Minimum Moves to Spread Stones Over GridMedium2858Minimum Edge Reversals So Every Node Is ReachableHard2998Minimum Number of Operations to Make X and Y EqualMedium3015Count the Number of Houses at a Certain Distance IMedium3123Find Edges in Shortest PathsHard3203Find Minimum Diameter After Merging Two TreesHard3235Check if the Rectangle Corner Is ReachableHard3243Shortest Distance After Road Addition Queries IMedium3283Maximum Number of Moves to Kill All PawnsHard3286Find a Safe Walk Through a GridMedium3310Remove Methods From ProjectMedium3372Maximize the Number of Target Nodes After Connecting Trees IMedium3373Maximize the Number of Target Nodes After Connecting Trees IIHard3387Maximize Amount After Two Days of ConversionsMedium3419Minimize the Maximum Edge Weight of GraphMedium3493Properties GraphMedium3528Unit Conversion IMedium3552Grid Teleportation TraversalMedium3568Minimum Moves to Clean the ClassroomMedium3607Power Grid MaintenanceMedium3619Count Islands With Total Value Divisible by KMedium
← 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.