Problem 1022 · Easy
Carry the binary value down the tree; each leaf contributes the number its root-to-leaf path spells.
Open the interactive visualisation