Sum Root to Leaf Numbers at Meta
Medium69.6% acceptance
This problem has 75.0% frequency at Meta.
Problem Description
You are given the `root` of a binary tree containing digits from `0` to `9` only. Each root-to-leaf path in the tree represents a number. * For example, the root-to-leaf path `1 -> 2 -> 3` represents the number `123`. Return _the total sum of all root-to-leaf numbers_. Test cases are generate...
Read full problem and hintsTopics
Also asked at 5 companies
More Meta Questions
Binary Tree Right Side ViewMediumLowest Common Ancestor of a Binary TreeMediumDiameter of Binary TreeEasyClone GraphMediumMaking A Large IslandHard
View all Meta questions