Search and Delete in Binary Search Tree | C++ Placement Course | Lecture 28.2

Поділитися
Вставка
  • Опубліковано 3 лют 2025

КОМЕНТАРІ •

  • @aayushvyas6270
    @aayushvyas6270 3 роки тому +71

    for those who wonder why we are looking for curr->left in InOrder Successor
    answer : if we look in curr->right then we will be looking for values that are > curr->data and if we look in curr->left we will get values < curr->data, and ofcourse we want to replace the parent node with a value less than the curr->data to preserve the BST property i.e (parent->left->data < parent->data < parent->right->data)

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

      We understand in easy words we just find our inorder successor of the node has to be just little greater .

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

      then how can we call it as successor...it would be predesor?

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

      GOT THAT......SEE WHERE THE FN IS CALLED...THERE WE HAVE PASSED ROOT->RIGHT NOT ROOT.....AUR AB HUME ROOT KE LEFT KO TALASHNA HAI....

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

      Code is not very good basically.

    • @Shivam-kz2dg
      @Shivam-kz2dg 2 роки тому

      @@adityashubham6242 it will be successor for root (yeah ofcourse smallest value in given sub tree but greater than root)

  • @uxxrhiiikgfdsdvhj
    @uxxrhiiikgfdsdvhj Рік тому +9

    anyone wondering why we are looking for curr->left, look before we are calling inorderSucc for root->right, means we are looking for all elements greater than root, and we want the least value thats greater than root, and thatll be present in the left most element of the subtree with node root->right

  • @-_--_-2106
    @-_--_-2106 3 роки тому +13

    Thank u so so so much Team AD❤
    Keep it Up

  • @divyarthsingh589
    @divyarthsingh589 3 роки тому +12

    Hat's off to this Ma'am!! Best Explanation!! So much efforts by whole team!!

  • @NikhilKumar-gy8bb
    @NikhilKumar-gy8bb 2 роки тому +2

    Nice mam
    No one teach like you
    Awesome 👍👍👍👍👍

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

    Woh di very good explanation 👍🥰👍🥰✨✨❣️

  • @yashwanthdas2924
    @yashwanthdas2924 3 роки тому +4

    AWESOME LECTURE HAI KEEP IT UP MAM

  • @SanjeevVerma7K
    @SanjeevVerma7K 3 роки тому +5

    Thank you Ma'am, it really helped me.

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

    Congratulation on 1 million subscribers 🥳🥳🥳🥳

  • @kittibilli140
    @kittibilli140 8 місяців тому +1

    Thank u very much didi❤

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

    Thank you so much ma'am

  • @rambabupatidar3092
    @rambabupatidar3092 3 роки тому +9

    In the first go i had not understood anything because I had not took pan paper with me. After 2 days somehow I came again and now i had pen and paper with me and broke problem in 4 sub problem and tried each individually as new question :
    1.Delete a leaf node in bst
    2. Delete node with one child
    3. Delete node with two child
    4. Find inorder successor of a node in bst
    And now this problem seems very easy as compared to 1st time.
    Conclusion: untill you don't use pen paper you can't able solve problems exception are there for super minded peoples.

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

    Best explanation ever

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

    Such a good explanation 😃

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

    Thank you 🙏🙏

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

    thanku Bhaiya ji andAC TEAM members :)

  • @rutvikrana512
    @rutvikrana512 3 роки тому +31

    This is why Search in BST is depend on Height.
    Consider BST as below :-
    1
    2
    3
    4
    5
    Here height is N so time complexity is O(N)
    So Actual Time complexity of BST search: O(H)
    Average case Time complexity: O( log N )

    • @sumitKumar-pf9xo
      @sumitKumar-pf9xo 3 роки тому +6

      That is worst time complexity

    • @bhaveshmoon1979
      @bhaveshmoon1979 3 роки тому +7

      1. Best case will be O(1), when we get element at roor itself
      2. Average case will O(logn), when we search element in either left or right sub tree
      3. Worst case will be O(n), when the BST have only one direction subtree in its child

    • @Shivam-kz2dg
      @Shivam-kz2dg 2 роки тому +1

      That's why we use avl tree

  • @harikpriyatirumalaraju674
    @harikpriyatirumalaraju674 3 роки тому +27

    excellent teaching and why haven't you added AVL trees concept?

    • @reacherstudy5546
      @reacherstudy5546 2 роки тому +7

      Atta nahi hoga , tujhe kya be

    • @AkashSingh-xj8ug
      @AkashSingh-xj8ug 2 роки тому +1

      Inhen avl tree aur binary tree me koi antar nhi dikhta isliye to sari time complexity avl tree k btaya he isme

  • @SurajMapariPrivate
    @SurajMapariPrivate 3 роки тому +12

    This Man Is Going Crazy Keep It Up 😆 Thanks You So Much For All The Lectures❤️🙏

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

      bhai pdh bhi rahe ho sath me ki ni

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

      @@yashasvi9301 nahi abhi 12th khatam ho gayi he ab start karunga

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

    good explanation

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

    Wow what a leature😘

  • @DoorvaDhakad
    @DoorvaDhakad Рік тому +1

    sure these videos are helpful, but for people having good experince with recursion. For a lot of people including me, we have a hard time understanding the logic of how and why exactly the code was written the way it is. It would be really great if you also give a line by line explanation plus line by line example to show how the code works, specifically the recursion part.

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

    for those who wonder why we are looking for curr->left in InOrder Successor
    ans: if we look from curr->left and curr->right both are similar to delete you can dry run the code by writing curr->right instead of curr->left ans will be same

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

    For best delete explaination

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

    Maja aa gya

  • @piyushlohiya1977
    @piyushlohiya1977 3 роки тому +16

    Did anyone notice she said :"humein phele se pata hai time complexity of search in BST is o(n) thats is why we can say that time complexity in seacrh in BST is o(n)" ...kya ghumaya hai shabdo mei 😂😂😂 "great work"👍

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

    They said in case 3:we find inorder successor first then they code in case 3 they store min value in temp variable

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

    6:50 if we put log both side then hlog2 = log(n+1) and in next step u wrote h = log(n+1) ,so where log2 gone?

  • @kdepankar6643
    @kdepankar6643 Рік тому +1

    What about "dangling pointer" after we free the memory???

  • @harshsharma-fg6jz
    @harshsharma-fg6jz Рік тому

    in search the function should also have return null otherwise some compiler will give error

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

    thanks bhaiya

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

    Nice lecture

  • @mohakgidwani1505
    @mohakgidwani1505 3 роки тому +7

    Please upload Notes as well !

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

    Very convinient example you have right there, are you sure the code will run if the inorder successor has a left subtree?

    • @akshatshahjade6344
      @akshatshahjade6344 Рік тому +1

      If the inorder successor has a left subtree, it cannot be the inorder successor. Think about it...

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

    Tanky

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

    Which compiler u used

  • @MuhammadAli-xq6li
    @MuhammadAli-xq6li Рік тому +1

    you will also write the code or and link of the code in description

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

    By the Way, It's just Good

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

    one liner for search
    node * searchBST(node * temp , int key){
    return (temp == NULL || temp->data == key ) ? temp : ((temp->data > key)? searchBST(temp->left , key) : searchBST(temp->right , key)) ;
    }

  • @miss_er.21
    @miss_er.21 2 роки тому

    hlo mam aap please list /array ko input kr ke baata sakte hoo means list nhi deni pehle

  • @krishnaagarwal7354
    @krishnaagarwal7354 10 місяців тому

    Does not deletes if only one node is present

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

    thank you mam

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

    @Apna College sir this code does not work if you want to delete the root node or if you pass any value that is not present in the tree(test case)

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

    Keep Up

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

    19:29

  • @Zeno_Yoru
    @Zeno_Yoru 3 роки тому +6

    Vaiya notes???
    Pehle k lecture 8.2 aur kuch kuch lectures mai notes nhi hai .
    Please,vaiya notes vi dal dijiye.....

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

      maine binary tree se start ki thi abhi tak ek bhi notes nhi mili

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

    Plz koi iss ka code bata du
    Write down a program to store values in binary search tree. Program
    should keep taking values until we enter values less than 100. After
    entering values, print all unique values in

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

    What does it mean to free the root ?
    free(root) ...?

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

    But how does it explains the deletion of leaf nodes...no cases considered ig

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

    If i try to delete each node one by one by perform delete function for all nodes and then if i print the inorder traversal still it prints the last element which i delete. Why??
    Plz reply ....

  • @codecrafts5263
    @codecrafts5263 3 роки тому +4

    Could not understand inorder successor concept. Bar bar left m kyu ja rhe h
    curr-> curr.left
    please elaborate the logic

    • @akshitahuja2602
      @akshitahuja2602 3 роки тому +10

      "The successor will be the left most child of the right subtree or right child itself". Here in case 3 we are passing the argument [inorderSucc(root->right)] , hence we are going to the leftmost child of the right subtree. That's why we are progressing till curr->left != NULL.
      P.S- We are going till the leftmost child of RIGHT subtree because it would be the element just after the curr node in "inorder" sequence

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

      @@akshitahuja2602 it's progressing till curr && curr->left != Null
      Won't it make the curr null??

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

      @@rahul_ji21 no,if you check carefull we just need curr->left!=NULL because the next successor will always be a leaf node

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

      @@piyushlohiya1977 thenkss🤗

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

      To find just Max value after key in BST

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

    I have a doubt, if the BST is flatten what will be the time complexity of searching in BST? O(n)?

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

      bst cant be flatten ig, bc in flatten left subtree gonna be above the right subtree, and then that tree is not bst anymore.

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

      @@tarunbisht8016 Consider BST as
      1
      2
      3
      4
      5

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

    What about base case in delete function when key not found in BST?

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

    Extension name?

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

    where are the notess???

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

    notes nhi milenge kya

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

    osm

  • @alishbajawaid4463
    @alishbajawaid4463 9 місяців тому

    Where are notes

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

    ❤️❤️❤️

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

    what does the free method do?

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

    please answer this: can we free(temp) instead of calling delete BST IN LINE NO. 56????? THink

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

      Answer is NO! if inorder succ. happens to be a left child (at the right side of root offcourse)..if it has right child only...then passing the function remains only option.

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

    python mai v tutorials dijiye
    please

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

    this is giving me an error, let's suppose a tree
    5
    / \
    3 10
    / \ /
    2 4 9
    /
    8
    so, when I'm deleting 9, 8 is also being deleted, and when I'm deleting 10, 9, and 8 are also being deleted, whereas, if I delete 3 or 5, they are displaying everything fine. IDK, if it's something with the code or just my personal error, as we're told that if we're deleting a node with 1 child, I'm supposed to relate, its parent to the child of the node being deleted. I don't see that happening. but as i said, it can be due to some sort of personal error, if someone can decode my problem. i'll be glad.

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

      I am assuming when you delete 9, it is also dropping the nodes below it as the code has no connection to that node so it can't be searched.

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

    what if the inorder sucessor have a left child
    Like in this what happens if 4 have left child

  • @ArunKumar-ry2jf
    @ArunKumar-ry2jf 3 роки тому +2

    Case 3 me
    root-> right=deleteBST(root->right,temp->key);
    Is line me doubt hai

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

    What if binary tree has n level

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

    NOTES ????

  • @MadhanKumar-vf2cp
    @MadhanKumar-vf2cp 3 роки тому

    Guys can you send notes of trees topic

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

    bst se gst yaad aa jata hai

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

    Why ain't we using bool func for searchinBST function?

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

      yea, you can use bool function also

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

      bool is also possible, but then it will show only if the element is present or not, you can't do anything else sadly

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

    Can anyone please tell me why are we returning Node* in the search? Can we not solve it by returning bool

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

      Yes we can, apply bool and see the code working the same

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

      I don't think so, because you'll be returning the child-node (if there is one) to the key's previous root's pointer.

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

    I didn’t understand this root->left= deleteinbst(root->left,key)

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

      when key is smaller than root->data, we have to go in root->left to find the key and then delete it. After deletion temp is returned which will be joined to root->left , therefore we are taking the return from deleteinbst(root->left,key) in root->left

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

      Try to dry run the code for the below tree;
      5
      / |
      2 6
      \
      3

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

      @@kumarivandana1554 okay, thankyou

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

    what's temp->key?

    • @MSIS-xo3yr
      @MSIS-xo3yr 3 роки тому +1

      it should be temp->data actually

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

    Can anyone share the code...., I am getting error in inorderSuccessor (not declared in scope). Watched the lecture twice but still not able to debug it.

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

      Node* inorderSuccessor(Node* root){
      Node* curr=root;
      while(curr->left!=NULL){
      curr=curr->left;
      }
      return curr;
      }

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

      #include
      using namespace std;
      struct Node{
      int data;
      Node* left;
      Node* right;
      Node(int val){
      data=val;
      left=NULL;
      right=NULL;
      }
      };
      void inorder(Node* root){
      if(root==NULL){
      return;
      }
      inorder(root->left);
      coutleft;
      }
      return curr;
      }
      //Delete in BST
      Node* deleteInBST(Node* root,int key){
      //search the key
      if(keydata){
      root->left=deleteInBST(root->left,key);
      }
      else if(key>root->data){
      root->right=deleteInBST(root->right,key);
      }
      //key is found
      else{
      if(root->left==NULL){
      Node* temp=root->right;
      free(root);
      return temp;
      }
      else if(root->right==NULL){
      Node* temp=root->left;
      free(root);
      return temp;
      }
      Node* temp=inorderSuccessor(root->right);
      root->data=temp->data;
      root->right=deleteInBST(root->right,temp->data);
      }
      return root;
      }
      int main(){
      Node* root=new Node(8);
      root->left=new Node(2);
      root->left->left=new Node(1);
      root->left->right=new Node(5);
      root->left->right->left=new Node(3);
      root->left->right->right=new Node(7);
      root->right=new Node(9);
      root->right->right=new Node(10);
      /*
      8
      / \
      2 9
      / \ \
      1 5 10
      / \
      3 7
      */
      inorder(root);
      cout

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

      @@rohanyadav7542 thanks rohan

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

    sir please source code ka b link dia kre

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

    u are saying successor...but it should be min value on the left side...copied from gfg at least use right terms..it was confusing

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

    it works all good. But whenever i try to delete the last root node available in the tree with no child, am unable to perform anymore functions and the program just closes itself.. like for e.g after deleting all the nodes, i call the delete function again, instead of gettin message "tree is empty" my program just stops executing itself.
    if anyone knows anything regarding this then let me know :) thanks

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

    Ig something is wrong with delete function

  • @AhmadHassan-gb5ir
    @AhmadHassan-gb5ir 2 роки тому

    can somone explain free() function please

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

    delete smjh nhi aaya :(

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

    i didn't get the inordersucc function code part why loop will execute till curr and curr->left != NULL..WHY?

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

      Bro here the code is wrong for inorder successor

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

      bhai kyuki inorder sequence hamesha sorted order of elements dega aur left tak isliye jaana hai kyuki bst ke properties ke hisaab se left me hi hame chote values milenge aur inorder me bhi yahi hota hai.So not to break the rules of binary search trees

    • @akshitahuja2602
      @akshitahuja2602 3 роки тому +4

      "The successor will be the left most child of the right subtree or right child itself". Here in case 3 we are passing the argument [inorderSucc(root->right)] , hence we are going to the leftmost child of the right subtree. That's why we are progressing till curr->left != NULL.
      P.S- We are going till the leftmost child of RIGHT subtree because it would be the element just after the curr node in "inorder" sequence.

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

    When God come to help poor students ❤️

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

    Is programme handling the case where both child's are null

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

      yes

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

      @@fulcrum2277 Where?

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

      @@anuragpandey3341 in the first condition of root->left==NULL because even if the right is NULL as well we will return root->right ie NULL

  • @anonymous.u.s.e.r
    @anonymous.u.s.e.r 3 роки тому

    When will c language course start

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

      bhai ye C language course hi chal rha hai...!!

    • @anonymous.u.s.e.r
      @anonymous.u.s.e.r 3 роки тому

      @@ritikpratapsingh9128 bhai yee c++ ka cource he c ka nahi

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

      @@anonymous.u.s.e.r bhai ek hi cheez haii....thode se change ke liye...pura course to release krenge nhi!!

    • @anonymous.u.s.e.r
      @anonymous.u.s.e.r 3 роки тому

      @@ritikpratapsingh9128 bhai c or c++ me difference kya he yee kese pata chale ga

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

      @@anonymous.u.s.e.r bhai koi difference nhi hai....jo tu c mei kr skta hai vo sab c++ mei kr skta hai...!! thoda bhot internal functioning mei farq hota hai...thoda bhot syntax mei....pr vhi cheez hai almost

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

    Shouldn't the Time complexity of Search still be O(n)?
    because the BST is not a balanced tree, so the max height can go up to n.

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

      that is very rare case i guess thats why

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

      @@tarunbisht8016 big O accounts for worst-case complexity and O(log n) is its best-case complexity.

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

      @@shubhsahu4780 not the best case I guess best is o(1) if I'm searching the root note of a tree

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

      @@tarunbisht8016 Oh sorry, my bad. But O(log n) is not worst-case complexity, it is the Average case.

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

      @@shubhsahu4780 NO average case is o(logn) because in most of the cases we gonna have both left and right subtree but in the worst case, either left or right subtree will be NULL and the element I have to search will be the last node of that subtree

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

    when a node has 2 children like 3 has 2 and 4 , 3's ancester is 1 , then can't 3 delete directly and make 2 and 4 children of 1

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

      bro what about second child of 1 ? what if one already had 2 children for example 3 and 5, then if 3 is deleted we cant make 2 and 4 as children of 1 bcoz it already have 5 as 1 of its child.

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

      bro what about second child of 1 ? what if 1 already had 2 children for example 3 and 5, then if 3 is deleted we cant make 2 and 4 as children of 1 bcoz it already have 5 as 1 of its child.

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

    the code was so complicated and didn't run too.

    • @Vinay-uz8vo
      @Vinay-uz8vo 3 роки тому +1

      bhai usne bhi yhi bola tha😑😑😑....it's complicated

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

    free se error aa rha

  • @GauravGupta-ri9pv
    @GauravGupta-ri9pv 3 роки тому +1

    mycodeschool on youtube has explained deleting of a node very well if u have any problem in understanding
    check that

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

      yes, I watched it and explanation is good but he didn't explain the inodersucc() function. And that is the only doubt I have otherwise here too mam explained quite well

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

      @@adityabhandari6688 Watch Code Library's video on successor of bst, he explained it well

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

    what is temp->key?