Root Equals Sum of Children - LeetCode
Root Equals Sum of Children - 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[1] 처럼 배열식으로 접근하면 안되고
root.val
root.left.val
root.right.val
로 접근해야함
+
[JavaScript] 이진 트리(Binary Tree)와 트리 순회(Tree Traversal) - Dohee’s ML Lab (doheelab.github.io)
[JavaScript] 이진 트리(Binary Tree)와 트리 순회(Tree Traversal)
이번 글에서는 이진 트리(Binary Tree)와 트리 순회(Tree Traversal)에 대해서 알아보고, JavaScript를 이용해서 구현해보겠습니다.
doheelab.github.io
댓글