Others: Let's explain recursive approach, done. Nikhil: also explains BFS approach! That's why you are a gem!
@kanaramjangid85634 ай бұрын
Every videos has 110% of good explanation.
@nikoo284 ай бұрын
Glad you like them!
@glaide15003 ай бұрын
Man : On all your series, you tried !!! ... Thank you so much as you continue to saves life.
@TamilarasiM-gs8fb Жыл бұрын
Thank you so much .After a long search I got clearly explained video
@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 😇
@fortunefunda41717 ай бұрын
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.
@garvitarora77777 ай бұрын
yes you are right
@nikoo287 ай бұрын
Yep…sorry for the confusion
@anushkamathur40503 ай бұрын
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!
@susmitapatil48476 ай бұрын
Very well explained. Thank you so much for such nice content 🎉
@nikoo286 ай бұрын
My pleasure 😊
@quanganh709411 ай бұрын
thanks, very comprehensible!!
@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 Жыл бұрын
you can remove the "final" keyword if you like. It is not necessary in this implementation. :)
@anirudhv00627 ай бұрын
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?
@nikoo287 ай бұрын
Yes
@anirudhv00627 ай бұрын
@@nikoo28 Thanks! Your explanations are awesome
@subee12810 ай бұрын
Thanks
@evadranuvvuu4 ай бұрын
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?