Same Tree - Leetcode 100

preview_player
Показать описание
Today we will solve the "Same Tree" problem from Leetcode. We will walk through both BFS and DFS solutions in order to solve this problem.

This question has been asked by Google, Meta, Amazon, Apple, Microsoft, and so many other companies.

Please check the channel page for more leetcode solution videos. Also don't forget to like, comment, and subscribe.
Hope you enjoy the video and Thanks for watching 🙏

Chapters:
0:00 Intro and question
0:08 Examples
0:57 The idea
2:03 BFS Explanation
4:09 BFS Implementation
6:51 DFS Explanation
7:59 DFS Implementation
9:02 Time and Space Complexity
Рекомендации по теме
Комментарии
Автор

It will show you how to implement DFS on matrix problem.

algorial
welcome to shbcf.ru