Skip to content

Glossary: Coding Interviews in C++

Tree recursion

Also written: tree

Answering a tree question by returning a base answer for an empty tree, asking each child, and combining their answers with the node's value, as `total` does.

Where the book teaches it

Related terms

RecursionBase casestd::unique_ptr