Iterative Preorder traversal of a Binary Tree in Java

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 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 - ua-cam.com/play/PL6Zs6LgrJj3tDXv8a_elC6eT_4R5gfX4d.html

  • @shubhamagarwal1434
    @shubhamagarwal1434 5 місяців тому

    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....👍👍

  • @shubhamagarwal1434
    @shubhamagarwal1434 2 роки тому +1

    Best series for DS & Algo. I am also 10 yrs java exp guy. Was looking for DS & Algo free course over UA-cam with java implementation and found this. Hats Off To You Man..Excellent Work. GOD BLESS YOU :)

  • @shabnamjarial1302
    @shabnamjarial1302 7 місяців тому +1

    Thanks a lot. The patients and efforts can be seen in the video. Great way of explaining!

  • @swapniltravels
    @swapniltravels 2 роки тому

    not seen such a crystal clear explanation.☺

  • @Kumarvivek-uv5hf
    @Kumarvivek-uv5hf 3 роки тому +1

    Very well explained. Really appreciate your teaching skills.

  • @randipmalakar554
    @randipmalakar554 2 роки тому +1

    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 !

  • @orusuvenkatesh9090
    @orusuvenkatesh9090 Рік тому

    Great tutorial for DSA in Java

  • @TheSKooler
    @TheSKooler 2 роки тому +1

    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 роки тому +1

      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 !!!

  • @barathkumar873
    @barathkumar873 3 роки тому +3

    Thanks u so much for crystal clear explanation 👍👌

  • @rishabsud7535
    @rishabsud7535 Рік тому

    what is the fundamental difference between recursive and iterative? Like, does iterative take lesser time? Can you explain?

  • @srikanthracharla420
    @srikanthracharla420 4 роки тому +2

    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 роки тому +7

      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 роки тому +2

      @@itsdineshvaryani humm ok, thank you so much for your reply 🧡

  • @ascar66
    @ascar66 2 роки тому +1

    Thank you sir! Awesome algorithms.

  • @DSCS_AkshataChavan
    @DSCS_AkshataChavan 4 роки тому +2

    Thank you so much sir for ur effort 🙏

  • @rahulrsavant
    @rahulrsavant 2 роки тому +2

    Those who can see invisible, can do impossible 👍👍👍👍👍

  • @kasicoodes8730
    @kasicoodes8730 2 роки тому +1

    Thanks bro your content is clean an easy to understand nice 1 :)

  • @nitinmaheshwari9272
    @nitinmaheshwari9272 7 років тому +1

    Thank you for uploading, very helpful!!!

  • @sanjayjitu1
    @sanjayjitu1 4 роки тому +2

    Bro , please upload the post order , inorder iterative traversal.

  • @janimiyashaik1411
    @janimiyashaik1411 4 роки тому +1

    Excellent 🤜bro

  • @ranjankashyap1866
    @ranjankashyap1866 3 роки тому +2

    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 😊😊

  • @ekansh6267
    @ekansh6267 Рік тому

    👌👌👍

  • @santhoshimalay2558
    @santhoshimalay2558 3 роки тому +1

    thank you so much

    • @itsdineshvaryani
      @itsdineshvaryani  3 роки тому

      Welcome !!!

    • @santhoshimalay2558
      @santhoshimalay2558 3 роки тому +1

      @@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 роки тому +1

      @@santhoshimalay2558 Am trying to post more and more. Hopefully will try to cover more interview questions as well !!!

    • @santhoshimalay2558
      @santhoshimalay2558 3 роки тому +1

      @@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 роки тому +1

      Topics in data structures and algorithms ???

  • @pratyushranjansahu9495
    @pratyushranjansahu9495 6 років тому +1

    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 !!!

  • @parultak2218
    @parultak2218 6 років тому +1

    thankss

  • @jaspalsingh-mv5xh
    @jaspalsingh-mv5xh 3 роки тому

    nice

  • @saquelainmokhtar6016
    @saquelainmokhtar6016 Рік тому

    12:36

  • @nicoqueijo
    @nicoqueijo 4 роки тому +1

    Would doing this with a queue instead give you post-order traversal?