Binary Tree Traversal - Preorder, Inorder, Postorder

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ธ.ค. 2024

ความคิดเห็น • 23

  • @zhengyili7153
    @zhengyili7153 4 ปีที่แล้ว +5

    This video deserves millisons of thumb-ups.

    • @BlueTreeCode
      @BlueTreeCode  4 ปีที่แล้ว +1

      Thanks, Zhengyi Li! :)

  • @prestonleon5077
    @prestonleon5077 2 ปีที่แล้ว +1

    The method of explaining the difference between pre, in, and post-order made so much sense to me, thank you for this.

    • @BlueTreeCode
      @BlueTreeCode  9 หลายเดือนก่อน

      Glad you found the tree-traversals simple and easy to understand!! Please don't forget to share / recommend the channel on social media to help it grow.

  • @RajeshSamson
    @RajeshSamson 3 ปีที่แล้ว

    This content needs more likes... simply superb content

  • @marhawk6468
    @marhawk6468 3 ปีที่แล้ว

    You just earned a sub. I’ve been having trouble understanding tree traversal and recursion...this video itself cleared up all my confusion. From how you explained it to the animated walkthrough. Thank you! You are truly underrated

  • @universe2dimension
    @universe2dimension ปีที่แล้ว +1

    I finally understand how Recursion works

    • @BlueTreeCode
      @BlueTreeCode  9 หลายเดือนก่อน

      Glad I'm able to help! Don't forget to share as it helps out the channel.

  • @BlueTreeCode
    @BlueTreeCode  5 ปีที่แล้ว

    Hey Everyone! Thanks for checking out my video! Don't forget to Like, Subscribe, and MOST IMPORTANTLY click that Notification Bell for updates! :)

  • @nicholasstamatakis
    @nicholasstamatakis 2 ปีที่แล้ว

    This explanation is awesome!

    • @BlueTreeCode
      @BlueTreeCode  9 หลายเดือนก่อน

      Glad you found it helpful!! Please don't forget to share / recommend the channel on social media to help it grow.

  • @akshaynegi2619
    @akshaynegi2619 5 ปีที่แล้ว

    You've really made these data structures super easy to understand in all your videos. Could you please also cover certain advanced stuff like Graphs/Dynamic Programming/ Greedy algorithms too? Thanks a ton!

    • @BlueTreeCode
      @BlueTreeCode  5 ปีที่แล้ว +3

      @akshay negi Thank you for your kind comment :). I currently plan to post videos on Hash Tables ,Graphs, possibly Binary Heaps and Bloom Filters as these would complete the fundamental Data Structures.I also plan to post some non-data structure topics in JavaScript. I will definitely consider dynamic programming and greedy algorithms.

  • @namnguyenvan9601
    @namnguyenvan9601 2 ปีที่แล้ว

    thanks bro. love from VN

  • @topiary5650
    @topiary5650 3 ปีที่แล้ว

    I've really enjoyed your videos and they have helped me a lot with my data structures class. I'm just wondering if you moved to another platform or if you still make videos somewhere else because I really like how you teach and I would like to see more videos from you.

    • @BlueTreeCode
      @BlueTreeCode  3 ปีที่แล้ว

      Thank you so much for the kind comment, David! At the moment I cannot record videos due to the amount of work I'm doing, but eventually I will make a video that covers all the main sorting algorithms instead of splitting them up into several videos. If you enjoy this content, feel free to share this/other videos on social media as it helps out the channel a lot.

  • @themonster4759
    @themonster4759 ปีที่แล้ว

    where are the insert delete to binaryTree video ?

  • @camilotrejos
    @camilotrejos 2 ปีที่แล้ว

    Thank you so much!

    • @BlueTreeCode
      @BlueTreeCode  9 หลายเดือนก่อน

      Thank you so much! Please don't forget to share / recommend the channel on social media to help it grow.

  • @themonster4759
    @themonster4759 ปีที่แล้ว

    please continue

  • @angiolg2
    @angiolg2 4 ปีที่แล้ว

    After you pop 20 off the call stock and you go to 40, how does the algorithm know that you haven’t yet gone down the right child of 40? I don’t understand how that’s tracked

    • @BlueTreeCode
      @BlueTreeCode  4 ปีที่แล้ว +1

      Hi Gabriella, so the recursive calls come from 1 of 2 places. Either from the line (left.preorder) or the line (right.preorder). If for example (left.preorder) was hit, then in that stack frame, that is the point where the function will continue executing from when that stack frame reaches back to the top of the call stack (so line 5). (So every stack frame knows exactly which point (line) it was at before the next recursive call is made). That's why when 40 is back at the top of the call stack, it continues from where it left off (line 5). Hope this helps :)