Breadth-First Search
44 solutions
- 0100 - Same Tree (Easy)
- 0102 - Binary Tree Level Order Traversal (Medium)
- 0103 - Binary Tree Zigzag Level Order Traversal (Medium)
- 0112 - Path Sum (Easy)
- 0127 - Word Ladder (Hard)
- 0130 Surrounded Regions (Medium)
- 0133 - Clone Graph (Medium)
- 0200 - Number of Islands (Medium)
- 0207 - Course Schedule (Medium)
- 0210 - Course Schedule II (Medium)
- 0226 - Invert Binary Tree (Easy)
- 0286 - Walls and Gates (Medium)
- 0297 - Serialize and Deserialize Binary Tree (Hard)
- 0322 - Coin Change (Medium)
- 0323 - Number of Connected Components in an Undirected Graph (Medium)
- 0329 - Longest Increasing Path in a Matrix (Hard)
- 0404 - Sum of Left Leaves (Easy)
- 0417 - Pacific Atlantic Water Flow (Medium)
- 0429 - N-ary Tree Level Order Traversal (Medium)
- 0433 - Minimum Genetic Mutation (Medium)
- 0437 - Path Sum III (Medium)
- 0542 - 01 Matrix (Medium)
- 0623 - Add One Row to Tree (Medium)
- 0637 - Average of Levels in Binary Tree (Easy)
- 0653 - Two Sum IV - Input is a BST (Easy)
- 0684 - Redundant Connection (Medium)
- 0695 - Max Area of Island (Medium)
- 0743 - Network Delay Time (Medium)
- 0778 - Swim in Rising Water (Hard)
- 0787 - Cheapest Flights Within K Stops (Medium)
- 0841 - Keys and Rooms (Medium)
- 0847 - Shortest Path Visiting All Nodes (Hard)
- 0909 - Snakes and Ladders (Medium)
- 0967 - Numbers With Same Consecutive Differences (Medium)
- 0987 - Vertical Order Traversal of a Binary Tree (Hard)
- 0994 - Rotting Oranges (Medium)
- 1254 - Number of Closed Islands (Medium)
- 1293 - Shortest Path in a Grid with Obstacles Elimination (Hard)
- 1448 - Count Good Nodes in Binary Tree (Medium)
- 1457 - Pseudo-Palindromic Paths in a Binary Tree (Medium)
- 1519 - Number of Nodes in the Sub-Tree With the Same Label (Medium)
- 1631 - Path With Minimum Effort (Medium)
- 1926 - Nearest Exit from Entrance in Maze (Medium)
- 2477 - Minimum Fuel Cost to Report to the Capital (Medium)