Trees1 article
Trees
Tree problems test recursive thinking. Traversals, depth calculations, and path sums — almost always solved with DFS.
Related:BFS / DFS
Tree problems test recursive thinking. Traversals, depth calculations, and path sums — almost always solved with DFS.