Same Tree Algorithm

Trees are not a taxonomic group but include a variety of plant species that have independently evolved a trunk and branches as a manner to tower above other plants to compete for sunlight. In some usages, the definition of a tree may be narrower, including only woody plants with secondary increase, plants that are usable as lumber or plants above a specify height.

Same Tree source code, pseudocode and analysis