Insertion in Binary Search Tree (BST) using RECURSIVE FUNCTION (Working with Diagram) | DSA

Поделиться
HTML-код
  • Опубликовано: 19 окт 2024

Комментарии • 29

  • @preetishamballi6988
    @preetishamballi6988 3 года назад +6

    Hello Tanmay,
    appreciate your efforts on creating this playlist.
    request you to look into memory leak of the complete program of binary search tree.
    You have kept it real simple to understand but at the same time keeping it correct matters as this is C++.

  • @greenoceantech5609
    @greenoceantech5609 3 года назад +6

    Bro you are better than my personal paid teacher....... I think you need to be an professor....... I can't believe your teaching those things for free.... Hats off

    • @SimpleSnippets
      @SimpleSnippets  3 года назад +9

      Wow, thanks. Glad to hear this from you. And yes I am trying my best to teach all these fundamental subjects for free because I feel everyone should get access to such knowledge for free.

  • @ramizzaheer7238
    @ramizzaheer7238 3 года назад +7

    Your videos are a life saver, i'm really hoping for videos related to graph, Btree and complete Avl tree as it's in my course :(

  • @sakurapandu8860
    @sakurapandu8860 2 года назад +1

    Thank you, this video cleared alot of things

  • @fatossm
    @fatossm 24 дня назад

    harika anlatıyorsunuz, çok teşekkürler. Türkiye'den Selamlar!

  • @flowing_dance
    @flowing_dance 2 года назад +1

    Excellent Explanation!

  • @MistrYouTuber
    @MistrYouTuber 3 года назад +4

    Bro...my DSA course is totally based on u...i have cleared most of topics from u...
    Plz increase your upload speed otherwise i will not get good gpa 😥

  • @abhimanyu6534
    @abhimanyu6534 3 года назад +2

    Plzz complete this course as soon as possible 🙏🙏🙏🙏🙏🙏🙏🙏🙏

  • @nileshtoshniwal9046
    @nileshtoshniwal9046 3 года назад +3

    Please cover them as soon as possible pls 😍😍

  • @shaharrefaelshoshany9442
    @shaharrefaelshoshany9442 3 года назад +1

    best ever

  • @nileshtoshniwal9046
    @nileshtoshniwal9046 3 года назад +2

    Sir when you are going to upload next vedio? 🙏🙏
    We are hardly waiting for the Red black trees vedio 🙈🙈

  • @vijayalaxmiise1504
    @vijayalaxmiise1504 2 года назад

    Thank You sir

  • @cpwithsundar
    @cpwithsundar 2 года назад +2

    Sir, Great video.
    May I know whether are you still studying or where do you work sir?

  • @AiminglowNAccpble
    @AiminglowNAccpble 3 года назад +4

    Any idea sir how long it will go?

    • @SimpleSnippets
      @SimpleSnippets  3 года назад +4

      Nope this seems like a never ending subject to me 😅

  • @DebashisDGiri
    @DebashisDGiri 3 года назад +2

    Sir how many more videos to come in this playlist??

  • @aniketdhiman
    @aniketdhiman 3 года назад +3

    Waiting.....

  • @gauravjaiswal7407
    @gauravjaiswal7407 3 года назад +1

    WOW!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @praveens7698
    @praveens7698 3 года назад +2

    Good concept sir
    But too slow of uploading videos.People can't wait they will watch on another channel.Just suggestion

    • @SimpleSnippets
      @SimpleSnippets  3 года назад +4

      Thanks Praveen. Actually I myself encourage people to not wait on my videos and watch other channels and sources. Because these videos take a lot of time to make and unfortunately I cannot do much about it as I handle the entire process alone. 😇

  • @gamsterilyass2952
    @gamsterilyass2952 Месяц назад

    the goat

  • @nizarmejri9478
    @nizarmejri9478 3 года назад

    Respect

  • @devmahad
    @devmahad Год назад

    18:23 (For my notes)

  • @susmitsingh1775
    @susmitsingh1775 3 года назад +1

    //I came up with a similar implementation
    Node* insert_rec (Node* root , Node *n)
    {
    if (root == NULL) return root;
    else if (root->data > n->data && root->left == NULL) return root;
    else if (root->data < n->data && root->right == NULL) return root;
    else if (root->data > n->data && root->left != NULL) insert_rec (root->left , n);
    else insert_rec (root->right , n);
    }
    //if NULL is returned manually assign the tree root to new_node

  • @fazilabano1309
    @fazilabano1309 3 года назад +1

    😇👍