129
-
[LeetCode] 129. Sum Root to Leaf NumbersLeetCode 2021. 11. 3. 11:22
https://leetcode.com/problems/sum-root-to-leaf-numbers/ Sum Root to Leaf Numbers - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Sum Root to Leaf Numbers - Medium root-leaf 노드부터 방문한 노드들을 쭉 나열한 값을 모두 더하는 문제다. 아주아주 간단하다. root부터 왼쪽, 오른쪽 자식을 체크해 있다면 그 자식들의 값을 자신의값*10 만큼 더해주고, 왼쪽,오른쪽 ..