Tag: a-dfs
All the articles with the tag "a-dfs".
-
LeetCode 802 Find Eventual Safe States
Solutions for LeetCode 802, medium, tags: depth-first search, breadth-first search, graph, topological sort.
-
LeetCode 662 Maximum Width of Binary Tree
Solutions for LeetCode 662, medium, tags: tree, depth-first search, breadth-first search, binary tree.
-
LeetCode 103 Binary Tree Zigzag Level Order Traversal
Solutions for LeetCode 103, medium, tags: tree, breadth-first search, binary tree.
-
LeetCode 323 Number of Connected Components in an Undirected Graph
Solutions for LeetCode 323, medium, tags: depth-first search, breadth-first search, union find, graph.
-
LeetCode 2385 Amount of Time for Binary Tree to Be Infected
Solutions for LeetCode 2385, medium, tags: tree, depth-first search, breadth-first search, binary tree.
-
LeetCode 934 Shortest Bridge
Solutions for LeetCode 934, medium, tags: array, depth-first search, breadth-first search, matrix.