Iterative Preorder traversal of a Binary Tree in Java

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

Dinesh Varyani

Dinesh Varyani

Күн бұрын

►Full DSA Course - • Data Structures and Al...
►Follow me on Instagram - bit.ly/intrvwk...
►Follow me on LinkedIn - bit.ly/fllwlkdn
►Enroll in the complete course: bit.ly/3W4qthg
►Source Code - github.com/din...
►Download DSA Animation Slides - techready.in/c...
►Click here to subscribe - www.youtube.co...
Watch all my playlist here:
►Data Structures and Algorithms Course playlist: • Data Structures and Al...
►Mastering JUnit 5 - www.youtube.co...
►Mastering Mockito 3 - • Mockito 3 Tutorials
►Analysis of Algorithms - • Analysis of Algorithms
►Linked List Data Structures - • Linked List Data Struc...
►Array Data Structures - • Playlist
►Stack Data Structure - • Stack Data Structure
►Queue Data Structure - • Queue Data Structure
►Binary Tree Data Structure - • Binary Tree Data Struc...
►Graph Data Structure - • Graph Data Structure
►Binary Heap Data Structure - • Binary Heap Data Struc...
►Trie Data Structure - • Trie Data Structure
►Dynamic Programming Algorithms - • Dynamic Programming Al...
►Hashing Data Structures - • Hashing Data Structures
►Sorting and Searching - • Sorting and Searching
►String Algorithms - • String Algorithms
Want to land a software engineering job in the IT industry? This course - 'Visualizing Data Structures and Algorithms' is here to help. The course walks you through multiple Java algorithms, data structures problems, and their solutions with step by step visualizations, so that you are actually learning instead of blindly memorizing solutions.
The course covers in and outs of Data Structures and Algorithms in Java. Java is used as the programming language in the course. Students familiar with Javascript, Python, C#, C++, C, etc will also get to learn concepts without any difficulty. The implementation of various Algorithms and Data Structures have been demonstrated and implemented through animated slides. It covers many interview room questions on Algorithms and Data Structures. The questions and solutions are demonstrated by -
1. Animated slide. (To make visualization of algorithms faster)
2. Coding algorithm on IDE.
The course covers topics such as -
0. Algorithm Analysis
1. Arrays
2. Matrix
3. Singly Linked List
4. Doubly Linked List
5. Circular Singly Linked List
6. Stacks
7. Queues
8. Binary Tree
9. Binary Search Tree
10. Graphs
11. Priority Queues and Heaps
12. Recursion
13. Searching
14. Sorting
15. Strings
16. Trie Data Structure
17. Dynamic Programming
and many more ...
#dsa #algorithms #coding

Пікірлер: 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 !!!!
@rishabsud7535
@rishabsud7535 Жыл бұрын
what is the fundamental difference between recursive and iterative? Like, does iterative take lesser time? Can you explain?
@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 !!!
@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 !
@barathkumar873
@barathkumar873 3 жыл бұрын
Thanks u so much for crystal clear explanation 👍👌
@itsdineshvaryani
@itsdineshvaryani 3 жыл бұрын
Welcome !!
@orusuvenkatesh9090
@orusuvenkatesh9090 Жыл бұрын
Great tutorial for DSA in Java
@itsdineshvaryani
@itsdineshvaryani Жыл бұрын
Glad you liked it
@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
@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 🧡
@kasicoodes8730
@kasicoodes8730 2 жыл бұрын
Thanks bro your content is clean an easy to understand nice 1 :)
@itsdineshvaryani
@itsdineshvaryani 2 жыл бұрын
welcome !!!
@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)
@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!
@abhishekranjan1094
@abhishekranjan1094 3 жыл бұрын
very nice Sir 😊😊
@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 Жыл бұрын
👌👌👍
@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
@nicoqueijo
@nicoqueijo 4 жыл бұрын
Would doing this with a queue instead give you post-order traversal?
@itsdineshvaryani
@itsdineshvaryani 4 жыл бұрын
I dont think so ...
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 М.
Мама у нас строгая
00:20
VAVAN
Рет қаралды 10 МЛН
小路飞还不知道他把路飞给擦没有了 #路飞#海贼王
00:32
路飞与唐舞桐
Рет қаралды 87 МЛН
Recursive Postorder traversal of a Binary Tree in Java
26:47
Dinesh Varyani
Рет қаралды 19 М.
Iterative Postorder Traversal of a Binary Tree | Animation
27:56
Dinesh Varyani
Рет қаралды 16 М.
Best Books for Learning Data Structures and Algorithms
14:01
Engineering with Utsav
Рет қаралды 374 М.
Pointers in C / C++ [Full Course]
3:47:23
freeCodeCamp.org
Рет қаралды 4,5 МЛН
Java Algorithms - Tree Traversal
9:40
E4developer
Рет қаралды 24 М.
Binary Search in Java
15:51
Dinesh Varyani
Рет қаралды 18 М.
Recursive Inorder traversal of Binary Tree in Java
26:57
Dinesh Varyani
Рет қаралды 43 М.
Мама у нас строгая
00:20
VAVAN
Рет қаралды 10 МЛН