LeetCode 559. Maximum Depth of N-ary Tree
Given a n-ary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
.
Time Complexity = O(n), where ‘n' is the number of nodes
Space Complexity = O(h), where 'h' is the height of the tree
.
Subscribe 👉 https://bit.ly/3f9gHGN for more tips and tricks to pass your next technical interview!
.
Subscribe 👉 https://bit.ly/3f9gHGN
Subscribe 👉 https://bit.ly/3f9gHGN
Subscribe 👉 https://bit.ly/3f9gHGN
.
My name is David and I am a software engineer at Meta. My passion is teaching software devs how to pass the grueling technical interviews to help them land their 6-figure dream tech job.
I have received 3 six-figure offers from Google, Meta, and Amazon.
.
.
#programming #coding #softwareengineer #softwaredeveloper #tech #computerscience #programmerlife #codinglife #code #programmer #studentprogrammer #collegestudents #careerintech #developer #coder #java #python #webdeveloper #javascript #webdevelopment #code #technology #apple #engineering #education #students #collegedays #programmingmemes #ファッション #smartphone #コーデ