You are given the root of a binary tree containing digits from 0–9. Each root-to-leaf path represents a number (e.g., 1→2→3 = 123). Return the total sum of all root-to-leaf numbers.
root = [1,2,3]25root = [4,9,0,5,1]1026Multiplying by 10 and adding the next digit is exactly how decimal numbers are formed — curr = curr×10 + digit. At each leaf we have the complete root-to-leaf number. Summing the left and right DFS calls automatically accumulates all leaf contributions. No extra path storage needed.