Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Same Tree (LeetCode 100) | Full solution with visuals and animations | Study Algorithms

Автор: Nikhil Lohia

Загружено: 2022-12-11

Просмотров: 11995

Описание:

Two trees even if they are different can result in a same traversal result. This happens because of the non-linear structure of the tree data structure. A neat little trick can be applied to the level order traversal technique to determine if two trees are exactly the same. Watch this video to understand how you can take advantage of the actual structure of a tree node and arrive at a solution.

Actual Problem: https://leetcode.com/problems/same-tree/

Chapters:
00:00 - Intro
00:52 - Problem Statement and Description
02:58 - What exactly are same trees?
05:50 - A trick with level order traversal
09:02 - Dry-run of Code
12:57 - Final Thoughts

📚 Links to topics I talk about in the video:
LeetCode Problems:    • Leetcode Solutions  
Other easy problems:    • Easy Problems  
Level Order Traversal:    • Level order traversal of Binary Tree | Ste...  
Binary Tree:    • Binary Trees Introduction | Different type...  

📘 A text based explanation is available at: https://studyalgorithms.com

Code on Github: https://github.com/nikoo28/java-solut...
Test-cases on Github: https://github.com/nikoo28/java-solut...

📖 Reference Books:
Starting Learn to Code: https://amzn.to/36pU0JO
Favorite book to understand algorithms: https://amzn.to/39w3YLS
Favorite book for data structures: https://amzn.to/3oAVBTk
Get started for interview preparation: https://amzn.to/39ysbkJ

🔗 To see more videos like this, you can show your support on: https://www.buymeacoffee.com/studyalg...

🎥 My Recording Gear:
Recording Light: https://amzn.to/3pAqh8O
Microphone: https://amzn.to/2MCX7qU
Recording Camera: https://amzn.to/3alg9Ky
Tablet to sketch and draw: https://amzn.to/3pM6Bi4
Surface Pen: https://amzn.to/3pv6tTs
Laptop to edit videos: https://amzn.to/2LYpMqn


💻 Get Social 💻
Follow on Facebook at:   / studyalgos  
Follow on Twitter at:   / studyalgorithms  
Follow on Tumblr at:   / studyalgos  
Subscribe to RSS feeds: https://studyalgorithms.com/feed/
Join fan mail: http://eepurl.com/g9Dadv

#leetcode #programming #interview

Same Tree (LeetCode 100) | Full solution with visuals and animations | Study Algorithms

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Invert Binary Tree (LeetCode 226) | Full solution with diagrams and animations | Study Algorithms

Invert Binary Tree (LeetCode 226) | Full solution with diagrams and animations | Study Algorithms

L.85 Identical Tree (same tree) | Subtree of another Tree

L.85 Identical Tree (same tree) | Subtree of another Tree

45. 다중 온톨로지 통합을 통한 의료 개념 표현 학습

45. 다중 온톨로지 통합을 통한 의료 개념 표현 학습

Maximum Depth of Binary Tree (LeetCode 104) | Full Solution with animations | Study Algorithms

Maximum Depth of Binary Tree (LeetCode 104) | Full Solution with animations | Study Algorithms

Jump Game (LeetCode 55) | Full solution with animations and visuals | Greedy Algorithms

Jump Game (LeetCode 55) | Full solution with animations and visuals | Greedy Algorithms

Екатерина Шульман: как изменилось отношение россиян к войне в 2025 году

Екатерина Шульман: как изменилось отношение россиян к войне в 2025 году

Декораторы Python — наглядное объяснение

Декораторы Python — наглядное объяснение

Subtree of Another Tree (LeetCode 572) | Full solution with examples | Study Algorithms

Subtree of Another Tree (LeetCode 572) | Full solution with examples | Study Algorithms

L.86 Diameter of Binary Tree

L.86 Diameter of Binary Tree

Majority Element (LeetCode 169) | Full solution with 4 different methods | Interview Essential

Majority Element (LeetCode 169) | Full solution with 4 different methods | Interview Essential

Minimum Depth of Binary Tree (LeetCode 111) | Full solution w/ graphical examples | Study Algorithms

Minimum Depth of Binary Tree (LeetCode 111) | Full solution w/ graphical examples | Study Algorithms

LLM и GPT - как работают большие языковые модели? Визуальное введение в трансформеры

LLM и GPT - как работают большие языковые модели? Визуальное введение в трансформеры

8 шаблонов для решения 80% проблем Leetcode

8 шаблонов для решения 80% проблем Leetcode

They HUMILIATED the Cleaner — and they PAID FOR IT | Anatoly GYM PRANK #57

They HUMILIATED the Cleaner — and they PAID FOR IT | Anatoly GYM PRANK #57

Алгоритмы и структуры данных за 15 минут! Вместо 4 лет универа

Алгоритмы и структуры данных за 15 минут! Вместо 4 лет универа

Предел развития НЕЙРОСЕТЕЙ

Предел развития НЕЙРОСЕТЕЙ

L16. Диаметр двоичного дерева | C++ | Java

L16. Диаметр двоичного дерева | C++ | Java

Итеративный и рекурсивный — симметричный обход двоичного дерева — Leetcode 94 — Python

Итеративный и рекурсивный — симметричный обход двоичного дерева — Leetcode 94 — Python

Каково это — изобретать математику?

Каково это — изобретать математику?

HackerRank - Reverse Linked List | Full solution with visuals | Study Algorithms

HackerRank - Reverse Linked List | Full solution with visuals | Study Algorithms

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]