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.
Glossary: Coding Interviews in C++
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.