Breadth-First Search

199 LeetCode questions

Difficulty Distribution

Easy
19
10%
Medium
122
61%
Hard
58
29%

Top Companies

Questions

TitleDifficulty
Maximum Depth of Binary TreeEasy
Perfect SquaresMedium
Coin ChangeMedium
01 MatrixMedium
Number of IslandsMedium
Divide Nodes Into the Maximum Number of GroupsHard
Binary Tree Zigzag Level Order TraversalMedium
Binary Tree Right Side ViewMedium
Minimum Jumps to Reach HomeMedium
Same TreeEasy
Binary Tree Level Order TraversalMedium
Word LadderHard
Surrounded RegionsMedium
Course ScheduleMedium
Serialize and Deserialize Binary TreeHard
Remove Invalid ParenthesesHard
Pacific Atlantic Water FlowMedium
Number of ProvincesMedium
Shortest Path to Get All KeysHard
Cousins in Binary TreeEasy
Rotting OrangesMedium
Number of Increasing Paths in a GridHard
Amount of Time for Binary Tree to Be InfectedMedium
Longest Increasing Path in a MatrixHard
Max Area of IslandMedium
Shortest Path in a Grid with Obstacles EliminationHard
Unit Conversion IMedium
Minimum Number of Flips to Convert Binary Matrix to Zero MatrixHard
Maximum Candies You Can Get from BoxesHard
Sliding PuzzleHard
Cheapest Flights Within K StopsMedium
Shortest Path in Binary MatrixMedium
Making A Large IslandHard
Accounts MergeMedium
Network Delay TimeMedium
Number of Operations to Make Network ConnectedMedium
Symmetric TreeEasy
Binary Tree Level Order Traversal IIMedium
Minimum Depth of Binary TreeEasy
Path SumEasy
Populating Next Right Pointers in Each NodeMedium
Populating Next Right Pointers in Each Node IIMedium
Word Ladder IIHard
Clone GraphMedium
Course Schedule IIMedium
Invert Binary TreeEasy
Minimum Height TreesMedium
Evaluate DivisionMedium
Sum of Left LeavesEasy
Trapping Rain Water IIHard
Minimum Genetic MutationMedium
Serialize and Deserialize BSTMedium
Island PerimeterEasy
Find Bottom Left Tree ValueMedium
Freedom TrailHard
Find Largest Value in Each Tree RowMedium
MinesweeperMedium
Merge Two Binary TreesEasy
Two Sum IV - Input is a BSTEasy
Print Binary TreeMedium
Maximum Width of Binary TreeMedium
Cut Off Trees for Golf EventHard
Redundant ConnectionMedium
Flood FillEasy
Open the LockMedium
N-ary Tree Level Order TraversalMedium
Swim in Rising WaterHard
Is Graph Bipartite?Medium
All Paths From Source to TargetMedium
Find Eventual Safe StatesMedium
Bus RoutesHard
Similar String GroupsHard
Keys and RoomsMedium
Shortest Path Visiting All NodesHard
All Nodes Distance K in Binary TreeMedium
Snakes and LaddersMedium
Shortest BridgeMedium
Check Completeness of a Binary TreeMedium
Regions Cut By SlashesMedium
Vertical Order Traversal of a Binary TreeHard
Number of EnclavesMedium
Maximum Level Sum of a Binary TreeMedium
As Far from Land as PossibleMedium
Lowest Common Ancestor of Deepest LeavesMedium
Shortest Path with Alternating ColorsMedium
Sum of Nodes with Even-Valued GrandparentMedium
Deepest Leaves SumMedium
Kth Ancestor of a Tree NodeHard
Number of Closed IslandsMedium
Get Watched Videos by Your FriendsMedium
Jump Game IVHard
Time Needed to Inform All EmployeesMedium
Find a Corresponding Node of a Binary Tree in a Clone of That TreeEasy
Count Good Nodes in Binary TreeMedium
Pseudo-Palindromic Paths in a Binary TreeMedium
Reorder Routes to Make All Paths Lead to the City ZeroMedium
Path With Minimum EffortMedium
Count Sub IslandsMedium
Nearest Exit from Entrance in MazeMedium
Find if Path Exists in GraphEasy

Showing 100 of 199 questions