Glossary: Coding Interviews in Rust
Tree recursion
Also written: TreeNode
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.
Glossary: Coding Interviews in Rust
Also written: TreeNode
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.