Depth First Search Algorithm to Find Leaves of a Binary Tree May 21, 2019 algorithms, c / c++, java, recursive No Comments Given a binary tree, collect a tree’s nodes as if you were doing this: Collect and remove all leaves, repeat until the tree is empty. Example: Input: 1 / … [Continue Reading...]