Binary Trees & Recursion in Java | Same Tree | Sub-Tree of Another Tree | Geekific
Discord Community: https://discord.gg/dK6cB24ATp
GitHub Repository: https://github.com/geekific-official/
If you’re preparing for a coding interview, then trees are one fundamental topic you should be tackling. In the last video of this series, we explained how to traverse a tree in a level-order manner with the help of queues. However, when asked about trees, the interviewer might be expecting a recursive approach to solve the problem as trees are recursive by nature. So, in this video, we tackle three different problems with the help of recursion.
LeetCode Problems solved in this video:
- https://leetcode.com/problems/binary-tree-inorder-traversal/
- https://leetcode.com/problems/same-tree/
- https://leetcode.com/problems/subtree-of-another-tree/
Timestamps:
00:00 Introduction
00:07 Binary Tree In-Order Traversal
00:50 Check if two Binary Trees are the Same
03:01 Check if a Binary tree is a Sub-Tree of Another
04:41 Thanks for Watching!
If you found this video helpful, check other Geekific uploads:
- Object-Oriented Programming Fundamentals: https://youtu.be/Vfk6sExu8-4
- SOLID Principles and Best Practices: https://youtu.be/HoA6aZPR5K0
- Recursion Made Simple, Recursive Methods: https://youtu.be/r8KJ2AJWkHs
- Use-Case and Sequence Diagrams: https://youtu.be/el501qi0KtI
- Introduction to Dynamic Programming: https://youtu.be/IjpoE28Ii34
- What is the Two-Pointers Technique and how to use it?: https://youtu.be/VEPCm3BCtik
- Trees Compared and Visualized, BST vs AVL vs RedBlack vs Splay vs Heaps: https://youtu.be/hmSFuM2Tglw
- Generics and Wildcards in Java, Invariance vs Covariance vs Contravariance: https://youtu.be/FXAUXvPNKi8
- Two Sum Problem, from Brute Force to Optimal: https://youtu.be/mQYABctoZ3E
- What is a Thread? (Process, Program, Parallelism, Scheduler Explained): https://youtu.be/hN2Yrf4tqTY
- Domain-Driven Design Made Simple: https://youtu.be/H5--9pMmuK4
#Geekific #SameTree #SubTreeOfAnother #CodingInteview #LeetCode #Java #Google #Amazon #Meta #Microsoft #Apple #Netflix
Видео Binary Trees & Recursion in Java | Same Tree | Sub-Tree of Another Tree | Geekific канала Geekific
GitHub Repository: https://github.com/geekific-official/
If you’re preparing for a coding interview, then trees are one fundamental topic you should be tackling. In the last video of this series, we explained how to traverse a tree in a level-order manner with the help of queues. However, when asked about trees, the interviewer might be expecting a recursive approach to solve the problem as trees are recursive by nature. So, in this video, we tackle three different problems with the help of recursion.
LeetCode Problems solved in this video:
- https://leetcode.com/problems/binary-tree-inorder-traversal/
- https://leetcode.com/problems/same-tree/
- https://leetcode.com/problems/subtree-of-another-tree/
Timestamps:
00:00 Introduction
00:07 Binary Tree In-Order Traversal
00:50 Check if two Binary Trees are the Same
03:01 Check if a Binary tree is a Sub-Tree of Another
04:41 Thanks for Watching!
If you found this video helpful, check other Geekific uploads:
- Object-Oriented Programming Fundamentals: https://youtu.be/Vfk6sExu8-4
- SOLID Principles and Best Practices: https://youtu.be/HoA6aZPR5K0
- Recursion Made Simple, Recursive Methods: https://youtu.be/r8KJ2AJWkHs
- Use-Case and Sequence Diagrams: https://youtu.be/el501qi0KtI
- Introduction to Dynamic Programming: https://youtu.be/IjpoE28Ii34
- What is the Two-Pointers Technique and how to use it?: https://youtu.be/VEPCm3BCtik
- Trees Compared and Visualized, BST vs AVL vs RedBlack vs Splay vs Heaps: https://youtu.be/hmSFuM2Tglw
- Generics and Wildcards in Java, Invariance vs Covariance vs Contravariance: https://youtu.be/FXAUXvPNKi8
- Two Sum Problem, from Brute Force to Optimal: https://youtu.be/mQYABctoZ3E
- What is a Thread? (Process, Program, Parallelism, Scheduler Explained): https://youtu.be/hN2Yrf4tqTY
- Domain-Driven Design Made Simple: https://youtu.be/H5--9pMmuK4
#Geekific #SameTree #SubTreeOfAnother #CodingInteview #LeetCode #Java #Google #Amazon #Meta #Microsoft #Apple #Netflix
Видео Binary Trees & Recursion in Java | Same Tree | Sub-Tree of Another Tree | Geekific канала Geekific
geekific programming coding computer science java geek coding interview google interview meta interview netflix interview amazon coding interview sde interview microsoft interview apple interview in order traversal same tree sub tree of another tree is same tree is sub tree binary tree java binary tree maximum path sum binary tree traversal subtree of another tree leetcode java tree data structure interview questions binary tree data structures
Комментарии отсутствуют
Информация о видео
6 мая 2023 г. 18:00:26
00:04:50
Другие видео канала