Sum root-to-leaf numbers

0
Remix

Each node of a binary tree holds a digit, so every root-to-leaf path spells a number. Return the sum of all those numbers.

MetaCodingLast asked Aug 2026
No answer yet. Write the first one; the best answer gets endorsed.