No video

Iterative Preorder traversal of a Binary Tree in Java

  Рет қаралды 29,994

Dinesh Varyani

Dinesh Varyani

6 жыл бұрын

►Full DSA Course - • Data Structures and Al...
►Follow me on Instagram - bit.ly/intrvwkckstrt
►Follow me on LinkedIn - bit.ly/fllwlkdn
►Enroll in the complete course: bit.ly/3W4qthg
►Source Code - github.com/dinesh-varyani/ds-...
►Download DSA Animation Slides - techready.in/courses/150-dsa-...
►Click here to subscribe - kzfaq.info...
Watch all my playlist here:
►Data Structures and Algorithms Course playlist: • Data Structures and Al...
►Mastering JUnit 5 - kzfaq.info?list...
►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 3 жыл бұрын
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 - kzfaq.info/sun/PL6Zs6LgrJj3tDXv8a_elC6eT_4R5gfX4d
@shabnamjarial1302
@shabnamjarial1302 4 ай бұрын
Thanks a lot. The patients and efforts can be seen in the video. Great way of explaining!
@itsdineshvaryani
@itsdineshvaryani 4 ай бұрын
Glad you liked the videos !!!
@shubhamagarwal1434
@shubhamagarwal1434 2 ай бұрын
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 2 ай бұрын
Welcome
@shubhamagarwal1434
@shubhamagarwal1434 2 жыл бұрын
Best series for DS & Algo. I am also 10 yrs java exp guy. Was looking for DS & Algo free course over KZfaq with java implementation and found this. Hats Off To You Man..Excellent Work. GOD BLESS YOU :)
@itsdineshvaryani
@itsdineshvaryani 2 жыл бұрын
Thanks !!!
@swapnilkumar4157
@swapnilkumar4157 2 жыл бұрын
not seen such a crystal clear explanation.☺
@itsdineshvaryani
@itsdineshvaryani 2 жыл бұрын
Thanks !!!
@nitinmaheshwari9272
@nitinmaheshwari9272 6 жыл бұрын
Thank you for uploading, very helpful!!!
@itsdineshvaryani
@itsdineshvaryani 6 жыл бұрын
Nitin Maheshwari Welcome !!!
@Kumarvivek-uv5hf
@Kumarvivek-uv5hf 3 жыл бұрын
Very well explained. Really appreciate your teaching skills.
@itsdineshvaryani
@itsdineshvaryani 3 жыл бұрын
Thanks !!!!
@rishabsud7535
@rishabsud7535 11 ай бұрын
what is the fundamental difference between recursive and iterative? Like, does iterative take lesser time? Can you explain?
@orusuvenkatesh9090
@orusuvenkatesh9090 Жыл бұрын
Great tutorial for DSA in Java
@itsdineshvaryani
@itsdineshvaryani Жыл бұрын
Glad you liked it
@barathkumar873
@barathkumar873 3 жыл бұрын
Thanks u so much for crystal clear explanation 👍👌
@itsdineshvaryani
@itsdineshvaryani 3 жыл бұрын
Welcome !!
@abhishekranjan1094
@abhishekranjan1094 3 жыл бұрын
very nice Sir 😊😊
@ascar66
@ascar66 2 жыл бұрын
Thank you sir! Awesome algorithms.
@itsdineshvaryani
@itsdineshvaryani 4 ай бұрын
Welcome
@kasicoodes8730
@kasicoodes8730 2 жыл бұрын
Thanks bro your content is clean an easy to understand nice 1 :)
@itsdineshvaryani
@itsdineshvaryani 2 жыл бұрын
welcome !!!
@DSCS_AkshataChavan
@DSCS_AkshataChavan 4 жыл бұрын
Thank you so much sir for ur effort 🙏
@itsdineshvaryani
@itsdineshvaryani 3 жыл бұрын
It's my pleasure
@janimiyashaik1411
@janimiyashaik1411 4 жыл бұрын
Excellent 🤜bro
@itsdineshvaryani
@itsdineshvaryani 3 жыл бұрын
Thank you! Cheers!
@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 !
@ekansh6267
@ekansh6267 11 ай бұрын
👌👌👍
@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 !!!
@jaspalsingh-mv5xh
@jaspalsingh-mv5xh 2 жыл бұрын
nice
@parultak2218
@parultak2218 6 жыл бұрын
thankss
@itsdineshvaryani
@itsdineshvaryani 3 жыл бұрын
Welcome !!!
@sanjayjitu1
@sanjayjitu1 3 жыл бұрын
Bro , please upload the post order , inorder iterative traversal.
@itsdineshvaryani
@itsdineshvaryani 3 жыл бұрын
Already uploaded
@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 ???
@pratyushranjansahu9495
@pratyushranjansahu9495 5 жыл бұрын
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 !!!
@rahulrsavant
@rahulrsavant Жыл бұрын
Those who can see invisible, can do impossible 👍👍👍👍👍
@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 🧡
@saquelainmokhtar6016
@saquelainmokhtar6016 Жыл бұрын
12:36
@ranjankashyap1866
@ranjankashyap1866 2 жыл бұрын
Sir dont we have to pass the TreeNode root into the method??
@itsdineshvaryani
@itsdineshvaryani 2 жыл бұрын
???
@_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)
@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
Рет қаралды 58 М.
Recursive Inorder traversal of Binary Tree in Java
26:57
Dinesh Varyani
Рет қаралды 42 М.
Каха заблудился в горах
00:57
К-Media
Рет қаралды 10 МЛН
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 18 МЛН
Это реально работает?!
00:33
БРУНО
Рет қаралды 3 МЛН
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
Rob Mulla
Рет қаралды 265 М.
Iterative Inorder traversal of a Binary Tree in Java
28:43
Dinesh Varyani
Рет қаралды 21 М.
JPEG is Dying - And that's a bad thing
8:09
2kliksphilip
Рет қаралды 70 М.
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 858 М.
Binary tree traversal - breadth-first and depth-first strategies
11:54
LeetCode Invert Binary Tree Solution Explained - Java
5:59
Nick White
Рет қаралды 97 М.
Каха заблудился в горах
00:57
К-Media
Рет қаралды 10 МЛН