Let's solve LeetCode #104 Maximum Depth of Binary Tree!
Please subscribe the channel from here.
[ Ссылка ]
■ Problem Link
[ Ссылка ]
■ DFS Python Code in the video
[ Ссылка ]
■ BFS Python Code in the video
[ Ссылка ]
■ Tree playlist
[ Ссылка ]
0:00 Read the question of Maximum Depth of Binary Tree
0:47 Explain a basic idea to solve Maximum Depth of Binary Tree with DFS
3:48 Coding with DFS and Time Complexity and Space Complexity
5:10 Explain a basic idea to solve Maximum Depth of Binary Tree with BFS
7:28 Coding with BFS and Review a part of code
11:27 Summarize the algorithm of Maximum Depth of Binary Tree
#leetcode #python #interview #trees
Ещё видео!