Solution for Breadth-first Search


3
14
5
# Name Difficulty Tags
101 Symmetric Tree Easy Tree | Depth-first Search | Breadth-first Search
102 Binary Tree Level Order Traversal Medium Tree | Breadth-first Search
103 Binary Tree Zigzag Level Order Traversal Medium Stack | Tree | Breadth-first Search
107 Binary Tree Level Order Traversal II Medium Tree | Breadth-first Search
126 Word Ladder II Hard Array | String | Backtracking | Breadth-first Search
130 Surrounded Regions Medium Depth-first Search | Breadth-first Search | Union Find
199 Binary Tree Right Side View Medium Tree | Depth-first Search | Breadth-first Search
429 N-ary Tree Level Order Traversal Medium Tree | Breadth-first Search
513 Find Bottom Left Tree Value Medium Tree | Depth-first Search | Breadth-first Search
515 Find Largest Value in Each Tree Row Medium Tree | Depth-first Search | Breadth-first Search
559 Maximum Depth of N-ary Tree Easy Tree | Depth-first Search | Breadth-first Search
863 All Nodes Distance K in Binary Tree Medium Tree | Depth-first Search | Breadth-first Search
993 Cousins in Binary Tree Easy Tree | Breadth-first Search
1129 Shortest Path with Alternating Colors Medium Breadth-first Search | Graph
1245 Tree Diameter Medium Tree | Depth-first Search | Breadth-first Search
1284 Minimum Number of Flips to Convert Binary Matrix to Zero Matrix Hard Breadth-first Search | Graph
1298 Maximum Candies You Can Get from Boxes Hard Breadth-first Search
1319 Number of Operations to Make Network Connected Medium Depth-first Search | Breadth-first Search | Union Find
1368 Minimum Cost to Make at Least One Valid Path in a Grid Hard Breadth-first Search
1391 Check if There is a Valid Path in a Grid Medium Depth-first Search | Breadth-first Search
1765 Map of Highest Peak Medium Breadth-first Search | Graph
1766 Tree of Coprimes Hard Math | Tree | Depth-first Search | Breadth-first Search