Iterative Preorder traversal of a Binary Tree in Java

  Рет қаралды 31,469

Dinesh Varyani

Dinesh Varyani

Күн бұрын

Пікірлер: 60
@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
@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 !!!
@shubhamagarwal1434
@shubhamagarwal1434 6 ай бұрын
Your playlist is like energy drink, i need before my DSA interviews...helped me changeing job last year and i am sure will help me this year as well...thanks a lot bro for this wonderful playlist....👍👍
@itsdineshvaryani
@itsdineshvaryani 6 ай бұрын
Welcome
@shabnamjarial1302
@shabnamjarial1302 7 ай бұрын
Thanks a lot. The patients and efforts can be seen in the video. Great way of explaining!
@itsdineshvaryani
@itsdineshvaryani 7 ай бұрын
Glad you liked the videos !!!
@swapniltravels
@swapniltravels 2 жыл бұрын
not seen such a crystal clear explanation.☺
@itsdineshvaryani
@itsdineshvaryani 2 жыл бұрын
Thanks !!!
@Kumarvivek-uv5hf
@Kumarvivek-uv5hf 3 жыл бұрын
Very well explained. Really appreciate your teaching skills.
@itsdineshvaryani
@itsdineshvaryani 3 жыл бұрын
Thanks !!!!
@barathkumar873
@barathkumar873 3 жыл бұрын
Thanks u so much for crystal clear explanation 👍👌
@itsdineshvaryani
@itsdineshvaryani 3 жыл бұрын
Welcome !!
@TheSKooler
@TheSKooler 2 жыл бұрын
Sir I follow you a lot and I think I grasped most of the concepts by watching your content, One humble request to you is that Start dynammic programming content and I am sure that you will get lakhs of views
@itsdineshvaryani
@itsdineshvaryani 2 жыл бұрын
Sure !!!
@TheSKooler
@TheSKooler 2 жыл бұрын
@@itsdineshvaryani if you have any paid content of dynamic programming please let me know specifically for competitive programming
@itsdineshvaryani
@itsdineshvaryani 2 жыл бұрын
@@TheSKooler will add ... Currently i dont have !!!
@orusuvenkatesh9090
@orusuvenkatesh9090 Жыл бұрын
Great tutorial for DSA in Java
@itsdineshvaryani
@itsdineshvaryani Жыл бұрын
Glad you liked it
@randipmalakar554
@randipmalakar554 2 жыл бұрын
Your videos are excellent source for new learners ! For this iterative Preorder traversal its using Stack DS. I see in some cases where Queue DS is used in Binary Tree traversal. I couldn't figure out when Stack is to be used and when Queue is to be used in Binary Tree. Do you have any video which is using Queue/Dqueue DS instead of Stack DS ? I want to understand the implementation using Queue/Dqueue DS. Thanks again for your excellent videos !
@itsdineshvaryani
@itsdineshvaryani 2 жыл бұрын
Its there !!! In bfs we use queue and in dfs we use stack
@randipmalakar554
@randipmalakar554 2 жыл бұрын
Thanks for your answer !
@rishabsud7535
@rishabsud7535 Жыл бұрын
what is the fundamental difference between recursive and iterative? Like, does iterative take lesser time? Can you explain?
@ascar66
@ascar66 2 жыл бұрын
Thank you sir! Awesome algorithms.
@itsdineshvaryani
@itsdineshvaryani 7 ай бұрын
Welcome
@rahulrsavant
@rahulrsavant 2 жыл бұрын
Those who can see invisible, can do impossible 👍👍👍👍👍
@DSCS_AkshataChavan
@DSCS_AkshataChavan 4 жыл бұрын
Thank you so much sir for ur effort 🙏
@itsdineshvaryani
@itsdineshvaryani 4 жыл бұрын
It's my pleasure
@kasicoodes8730
@kasicoodes8730 2 жыл бұрын
Thanks bro your content is clean an easy to understand nice 1 :)
@itsdineshvaryani
@itsdineshvaryani 2 жыл бұрын
welcome !!!
@nitinmaheshwari9272
@nitinmaheshwari9272 7 жыл бұрын
Thank you for uploading, very helpful!!!
@itsdineshvaryani
@itsdineshvaryani 7 жыл бұрын
Nitin Maheshwari Welcome !!!
@sanjayjitu1
@sanjayjitu1 4 жыл бұрын
Bro , please upload the post order , inorder iterative traversal.
@itsdineshvaryani
@itsdineshvaryani 4 жыл бұрын
Already uploaded
@janimiyashaik1411
@janimiyashaik1411 4 жыл бұрын
Excellent 🤜bro
@itsdineshvaryani
@itsdineshvaryani 4 жыл бұрын
Thank you! Cheers!
@ranjankashyap1866
@ranjankashyap1866 3 жыл бұрын
Sir dont we have to pass the TreeNode root into the method??
@itsdineshvaryani
@itsdineshvaryani 3 жыл бұрын
???
@_SeaH0rse
@_SeaH0rse Жыл бұрын
if you understand the way stacks work, the way he explains it is clear enough. The root node is passed into the stack, but with the LIFO principle, the procedure shows how they are processed (iteratively)
@abhishekranjan1094
@abhishekranjan1094 3 жыл бұрын
very nice Sir 😊😊
@srikanthracharla420
@srikanthracharla420 4 жыл бұрын
Can you please tell me, Which one is recommended to use? Recursive Version OR Iterator Version? Please give Replay to me, Thank you
@itsdineshvaryani
@itsdineshvaryani 4 жыл бұрын
Recursion has simple code while performing tree traversals ... Both has same time and space complexities ... But its preferred to use iterative ... Bcoz it avoids stack to get overflow ...
@srikanthracharla420
@srikanthracharla420 4 жыл бұрын
@@itsdineshvaryani humm ok, thank you so much for your reply 🧡
@pratyushranjansahu9495
@pratyushranjansahu9495 6 жыл бұрын
unable to download the source code..can u plz suggest how to download.
@itsdineshvaryani
@itsdineshvaryani 3 жыл бұрын
The source code github link has been added in description of video. Please check !!!
@ekansh6267
@ekansh6267 Жыл бұрын
👌👌👍
@nicoqueijo
@nicoqueijo 4 жыл бұрын
Would doing this with a queue instead give you post-order traversal?
@itsdineshvaryani
@itsdineshvaryani 4 жыл бұрын
I dont think so ...
@santhoshimalay2558
@santhoshimalay2558 3 жыл бұрын
thank you so much
@itsdineshvaryani
@itsdineshvaryani 3 жыл бұрын
Welcome !!!
@santhoshimalay2558
@santhoshimalay2558 3 жыл бұрын
@@itsdineshvaryani please upload videos on what topics to be prepared for a beginner google,amazon,microsoft internships.Thanks in advance your explanation is awesome
@itsdineshvaryani
@itsdineshvaryani 3 жыл бұрын
@@santhoshimalay2558 Am trying to post more and more. Hopefully will try to cover more interview questions as well !!!
@santhoshimalay2558
@santhoshimalay2558 3 жыл бұрын
@@itsdineshvaryani thanks a lot sir, Can you please suggest me the topics to be go through perfectly for the internships? please, I am trying so hard to get
@itsdineshvaryani
@itsdineshvaryani 3 жыл бұрын
Topics in data structures and algorithms ???
@jaspalsingh-mv5xh
@jaspalsingh-mv5xh 3 жыл бұрын
nice
@parultak2218
@parultak2218 6 жыл бұрын
thankss
@itsdineshvaryani
@itsdineshvaryani 3 жыл бұрын
Welcome !!!
@saquelainmokhtar6016
@saquelainmokhtar6016 Жыл бұрын
12:36
Recursive PreOrder traversal of a Binary Tree in Java
26:06
Dinesh Varyani
Рет қаралды 61 М.
Iterative Inorder traversal of a Binary Tree in Java
28:43
Dinesh Varyani
Рет қаралды 22 М.
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 100 МЛН
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33
Recursive Inorder traversal of Binary Tree in Java
26:57
Dinesh Varyani
Рет қаралды 43 М.
Pointers in C / C++ [Full Course]
3:47:23
freeCodeCamp.org
Рет қаралды 4,5 МЛН
Best Books for Learning Data Structures and Algorithms
14:01
Engineering with Utsav
Рет қаралды 374 М.
Iterative Postorder Traversal of a Binary Tree | Animation
27:56
Dinesh Varyani
Рет қаралды 16 М.
Recursive Postorder traversal of a Binary Tree in Java
26:47
Dinesh Varyani
Рет қаралды 19 М.
CppCon 2014: Mike Acton "Data-Oriented Design and C++"
1:27:46