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

  Рет қаралды 10,221

Nikhil Lohia

Nikhil Lohia

Күн бұрын

Пікірлер: 21
@ashok2089
@ashok2089 4 ай бұрын
Others: Let's explain recursive approach, done. Nikhil: also explains BFS approach! That's why you are a gem!
@kanaramjangid8563
@kanaramjangid8563 4 ай бұрын
Every videos has 110% of good explanation.
@nikoo28
@nikoo28 4 ай бұрын
Glad you like them!
@glaide1500
@glaide1500 3 ай бұрын
Man : On all your series, you tried !!! ... Thank you so much as you continue to saves life.
@TamilarasiM-gs8fb
@TamilarasiM-gs8fb Жыл бұрын
Thank you so much .After a long search I got clearly explained video
@minnikeswarrao6185
@minnikeswarrao6185 Жыл бұрын
Hi sir, First of all big fan of your work🙌 Requesting you to solve "Sum of distances in tree" problem of leetcode... I have gone through many videos but none of them are clear... Looking forward for your explanation 😇
@fortunefunda4171
@fortunefunda4171 7 ай бұрын
Sir at 13:42 you added 2 and 7 to the Queue but shouldn't 7 and 2 be added to Queue because you did swapping before this . I really liked your explanation but having this little doubt. Please clear this minor doubt.
@garvitarora7777
@garvitarora7777 7 ай бұрын
yes you are right
@nikoo28
@nikoo28 7 ай бұрын
Yep…sorry for the confusion
@anushkamathur4050
@anushkamathur4050 3 ай бұрын
Why are there so less likes on this video, this is so informative. I have seen more likes on stupid content and this quality content is getting lesser likes. Great work Nikhil Bhiaya!
@susmitapatil4847
@susmitapatil4847 6 ай бұрын
Very well explained. Thank you so much for such nice content 🎉
@nikoo28
@nikoo28 6 ай бұрын
My pleasure 😊
@quanganh7094
@quanganh7094 11 ай бұрын
thanks, very comprehensible!!
@lemui2075
@lemui2075 Жыл бұрын
Thank you so much for video with explaination. May I check with you, why you put the keyword "final" in front of Queue ?
@nikoo28
@nikoo28 Жыл бұрын
you can remove the "final" keyword if you like. It is not necessary in this implementation. :)
@anirudhv0062
@anirudhv0062 7 ай бұрын
why is the Linked List implementation of the queue being used here? can we use other thing like deque or other implementation of queue also?
@nikoo28
@nikoo28 7 ай бұрын
Yes
@anirudhv0062
@anirudhv0062 7 ай бұрын
@@nikoo28 Thanks! Your explanations are awesome
@subee128
@subee128 10 ай бұрын
Thanks
@evadranuvvuu
@evadranuvvuu 4 ай бұрын
if(root == null) { return null; } TreeNode temp=root.left; root.left=root.right; root.right=temp; invertTree(root.left); invertTree(root.right); return root; Sir this one take o(1)space? Then why using queue sir? Please any one explain?
@ascreations1396
@ascreations1396 10 ай бұрын
😃😃😃😃😃😃😃😃😃
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 92 МЛН
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
Real Man relocate to Remote Controlled Car 👨🏻➡️🚙🕹️ #builderc
00:24
Invert a binary tree | Leetcode 226 | Easy | C++ | Code + Explanation
6:53
Dynamic Programming isn't too hard. You just don't know what it is.
22:31
DecodingIntuition
Рет қаралды 197 М.
Recursion in Programming - Full Course
1:51:36
freeCodeCamp.org
Рет қаралды 966 М.
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 92 МЛН