Recursive Postorder traversal of a Binary Tree in Java

  Рет қаралды 19,969

Dinesh Varyani

Dinesh Varyani

Күн бұрын

Пікірлер: 43
@itsdineshvaryani
@itsdineshvaryani 4 жыл бұрын
Please *Like* , *Comment* , *Share* , *Subscribe* and *Click Bell* 🔔🔔🔔 Icon for More Updates. To get *Data Structures and Algorithms* complete course for free please follow this link - kzbin.info/aero/PL6Zs6LgrJj3tDXv8a_elC6eT_4R5gfX4d
@ujjwaljagtiani5760
@ujjwaljagtiani5760 4 жыл бұрын
Never have I seen someone explaining trees recursion so well. Wonderful !
@itsdineshvaryani
@itsdineshvaryani 4 жыл бұрын
Thanks !!!
@sameergrover7
@sameergrover7 6 ай бұрын
There are n number of channels on youtube but the way you teach things is completely different it's simple, precise and just point to point no rubbish ! You are great sir! Thank you for the wonderful videos never stop teaching us !
@itsdineshvaryani
@itsdineshvaryani 6 ай бұрын
Welcome
@travelnlearn
@travelnlearn 2 жыл бұрын
You have made pre post and inorder easier for us to understand. Thank You , these videos are a gem for me.
@itsdineshvaryani
@itsdineshvaryani 2 жыл бұрын
Thanks ... Please share it with your friends and colleagues too !!!
@shubhamagarwal1434
@shubhamagarwal1434 2 жыл бұрын
Best series for DS & Algo. I am also 10 yrs java exp guy. Was looking for DS & Algo free course over KZbin with java implementation and found this. Hats Off To You Man..Excellent Work. GOD BLESS YOU :)
@itsdineshvaryani
@itsdineshvaryani 2 жыл бұрын
Thanks !!!
@samjam_93
@samjam_93 4 жыл бұрын
Iterative approach pseudo: Stack s1 = new Satck(); Stack s2 = new Satck(); s1.push(root); while(!s1.isEmpty()){ temp = s1.pop(); s2.push(temp) if(temp.left != null) { s2.push(temp.left); } if(temp.right!= null) { s2.push(temp.right); } } Now pop all the elements of s2 stack they will be in post order
@itsdineshvaryani
@itsdineshvaryani 4 жыл бұрын
Try to use one stack !!!
@vigasvigas8848
@vigasvigas8848 2 жыл бұрын
I'm searching for long days, this kind of explanation for recursion..thanks for making the concept of recursion easier
@itsdineshvaryani
@itsdineshvaryani 2 жыл бұрын
Welcome !!!
@chinthanasachin1684
@chinthanasachin1684 3 жыл бұрын
Finally I found this video which has a detailed explanation about Postorder Traversal in java. Top quality explanation! Thanks a lot!
@itsdineshvaryani
@itsdineshvaryani 3 жыл бұрын
welcome !!!
@bharathenishetty1550
@bharathenishetty1550 2 жыл бұрын
superb video what a patience, clean and clear cut explanation
@itsdineshvaryani
@itsdineshvaryani 2 жыл бұрын
Thanks !!!
@anupmistry479
@anupmistry479 4 жыл бұрын
Best channel for learning DSA.
@itsdineshvaryani
@itsdineshvaryani 4 жыл бұрын
Thanks !!!
@ascar66
@ascar66 2 жыл бұрын
Thank you sir, nice video! Comment to support your channel
@itsdineshvaryani
@itsdineshvaryani 2 жыл бұрын
Thanks !!!
@maruthiprasanna815
@maruthiprasanna815 6 жыл бұрын
very good explanation. Can you please post other videos in this series? For dynamic programming, greedy algorithms and graph theory, String algorithms..
@alokpal7347
@alokpal7347 3 жыл бұрын
best explanation sir ji
@itsdineshvaryani
@itsdineshvaryani 3 жыл бұрын
Thanks !!!
@NabilaNazirkhan
@NabilaNazirkhan 4 жыл бұрын
Is it okay to have a method as "public void postorder(){// if() return}" and have a return statement within it?
@itsdineshvaryani
@itsdineshvaryani 4 жыл бұрын
void methods can have return statement.
@abinashbarik5128
@abinashbarik5128 6 жыл бұрын
Hi SIr ..I want a video on quick sort and some video on stack prefix and suffix
@tc07client5
@tc07client5 6 жыл бұрын
Thanks for explaining the code!
@audricrukerikibaye3704
@audricrukerikibaye3704 4 жыл бұрын
Thanks buddy!! your video was awesome and very helpful!!
@itsdineshvaryani
@itsdineshvaryani 4 жыл бұрын
You're welcome!
@aadityajaiswal1970
@aadityajaiswal1970 3 жыл бұрын
Sir,which one should we follow, recursive or iterative approach.
@itsdineshvaryani
@itsdineshvaryani 3 жыл бұрын
both hv similar complexities ... recursive is easy to write !!!
@debashishpattnaik4662
@debashishpattnaik4662 5 жыл бұрын
At 17:08, line no. was changed from 5 to 6. Can u explain a bit further, why changed.
@Stephen_Samuel
@Stephen_Samuel 5 жыл бұрын
*postOrder(root.left);* of 9 was completely executed, therefore *postOrder(root.left);* (i.e the next line) is being executed next.
@shubhamsingh-lf6zy
@shubhamsingh-lf6zy 3 жыл бұрын
Sir when value is null why execution goes to 6 why not to 1?
@itsdineshvaryani
@itsdineshvaryani 3 жыл бұрын
Can you ping me a video timeframe where u cannot understand?
@jaspalsingh-mv5xh
@jaspalsingh-mv5xh 2 жыл бұрын
Great
@itsdineshvaryani
@itsdineshvaryani 2 жыл бұрын
Thanks !!!
@arbindmandal5605
@arbindmandal5605 7 жыл бұрын
Awesome video
@itsdineshvaryani
@itsdineshvaryani 7 жыл бұрын
+Arbind Mandal Thanks !!!
@itsdineshvaryani
@itsdineshvaryani 7 жыл бұрын
+Arbind Mandal thanks !!!
@cupofjava5480
@cupofjava5480 2 жыл бұрын
thank you
@itsdineshvaryani
@itsdineshvaryani 2 жыл бұрын
Welcome
Iterative Inorder traversal of a Binary Tree in Java
28:43
Dinesh Varyani
Рет қаралды 22 М.
Recursive PreOrder traversal of a Binary Tree in Java
26:06
Dinesh Varyani
Рет қаралды 61 М.
快乐总是短暂的!😂 #搞笑夫妻 #爱美食爱生活 #搞笑达人
00:14
朱大帅and依美姐
Рет қаралды 12 МЛН
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 133 МЛН
Rawalpindi Event|| Thank You SO Much Farah Saloon
8:44
Noor Family Vlog
Рет қаралды 3,5 М.
Binary tree: Level Order Traversal
11:23
mycodeschool
Рет қаралды 612 М.
The Spiritual Meaning of Why You Appear Younger Than Your Age
11:47
Large Language Models explained briefly
8:48
3Blue1Brown
Рет қаралды 437 М.
The Physics That Doomed Amelia Earhart
36:36
Veritasium
Рет қаралды 2,5 МЛН
Why Unreal Engine 5.5 is a BIG Deal
12:11
Unreal Sensei
Рет қаралды 1 МЛН
Iterative Postorder Traversal of a Binary Tree | Animation
27:56
Dinesh Varyani
Рет қаралды 16 М.
How to Get a Developer Job - Even in This Economy [Full Course]
3:59:46
freeCodeCamp.org
Рет қаралды 3,2 МЛН