1022. Sum of Root To Leaf Binary Numbers
Last updated
Last updated
**Input:** root = [1,0,1,0,1,0,1]
**Output:** 22
**Explanation:** (100) + (101) + (110) + (111) = 4 + 5 + 6 + 7 = 22**Input:** root = [0]
**Output:** 0**Input:** root = [1]
**Output:** 1**Input:** root = [1,1]
**Output:** 3