
[LeetCode] 104. Maximum Depth of Binary Tree
·
알고리즘 문제풀이/LeetCode
문제 재귀, 트리 문제이다. binary tree의 root가 주어질 때, 최대 깊이를 구하는 문제이다. https://leetcode.com/problems/maximum-depth-of-binary-tree/ Maximum Depth of Binary Tree - 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 node에는 left node와 right node가 있다. root의 maximum depth는 left/right node의 maxi..