Solution for leetcode problem 104, Maximum Depth of Binary Tree
Solution using recursion of the tree
C++ solution using recursion
Leetcode problems and solutions
https://leetcode.com/problems/maximum-depth-of-binary-tree/
Java Solution:
https://leetcode.com/problems/maximum-depth-of-binary-tree/discuss/955682/Java-or-0ms-or-100-faster-or-DFS-or-Recursion
Time complexity of O(N)
Space complexity of O(N) or O(1) ignoring recursion stack
Download
0 formats
No download links available.
Maximum Depth of Binary Tree | Leetcode 104 | leetcode solution | NatokHD