404. Sum of Left Leaves
·
Algorithm
Sum of Left Leaves - 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 이진트리의 root가 주어진다. 주어진 트리의 왼쪽 자식 노드의 값의 합을 반환하는 문제다. 예시 Input: root = [3,9,20,null,null,15,7] Output: 24 Explanation: There are two left leaves in the binary tree, with values 9 and 15 respectively. 추가로 왼쪽 자식 노드의 값..