Awesome explanation! Indian's are the best computer teachers, it explain everything so clearly, slowly and datailled. You gained a Subscriptor
@vivekanandkhyade3 жыл бұрын
Thanks Leviatan
@abhinavrana81576 жыл бұрын
21:55 we can use the greatest value from left subtree and substitute it in place of 12 , BST property is preserved and so is the Inorder traversal.
@myerali82575 жыл бұрын
Exactly i wondered why he didnt explain that scenario
@aryanbisht77525 жыл бұрын
Yes.... I was also thinking the same...... I thought I might be wrong ..... but I have considered all the cases and I think things can be done in both ways
@krishnendudutta14654 жыл бұрын
One can use either inorder predecessor(largest from left subtree) or inorder successor(smallest from right subtree). Its a choice of developer.
@bestdeal33853 жыл бұрын
he is the most innocent teacher I've ever seen on youtube
@rohitbhelkar27124 жыл бұрын
your teaching skills are amazing. you make us understand complex problem in a very simplified way.
@exe.m1dn1ght4 ай бұрын
Sir, you are a Master Warrior of Algorirhms ! Thank you so much I now understand thank you Sir Warrior !!
@avinashravi_6 жыл бұрын
You just saved my semester! Thanks brother xD
@kanchanharjani18914 жыл бұрын
Sir, Your Teaching style is awesome. You explain concepts in a simple way making it easy to understand. Thank you so much.
@ayaramzy68153 жыл бұрын
When I see your face in any results of google .. I feel calm ... I will understand it .. you are so important like this
@vikasvishwakarma52636 жыл бұрын
I am not exaggerating, but you really are the best teacher of Data structures
@AbhishekKumar-eh6zy3 жыл бұрын
Sir, Your explanantions are the best..
@Anonymous-mm9tt2 жыл бұрын
Explained a complex topic by simplified method 😊
@manojbgm7 жыл бұрын
Nice video. nice explanation. I would like to correct a point that is you mentioned that you have to always take the inorder successor to replace the about to be deleted node but it is also possible to consider the inorder predecessor. Please do write back. I like the way you explain. Thank you :) good job
@Armaghan6197 жыл бұрын
brother do u have the link of the next video?
@quickbitesitsme4 жыл бұрын
is that max of the left sub tree ?
@AnjaliSharma-lq8ut2 жыл бұрын
Thankyouuuuu sir.... I was looking for such detailed explaination
@royalegaming98012 жыл бұрын
videos are in random order so, please arrange in the serial wise please.
@siddharthkshirsagar5404 жыл бұрын
Amazing explanation I struggled with with step to take, minimum but now it's clear thank you sir.
@Just1MorePerson17 жыл бұрын
dang you do a really good job at explaining wish my professor was as detailed
@FredoCorleone6 жыл бұрын
Very very good. The best indian in the business
@rahulmehra1864 жыл бұрын
Great job sir keep doing
@hallvardlundehervig55085 жыл бұрын
Fantastic explanation and examples sir
@johnsonmathew60085 жыл бұрын
There is another alternative to do children deletion, bring up the left sub tree at parent place of deletion and add right node(sub-tree) towards the rightmost node of the left sub-tree, it will save the searching time
@fardilviews4 жыл бұрын
this man helps me a lot....if I find him I will treat him.....
@vrushantdomde10705 жыл бұрын
amazing video sir ,you are great, sir , can you explain it coding
@saptarshichattopadhyay82342 жыл бұрын
This is so helpful.. Thank you sir
@haseenashaik61986 жыл бұрын
Nice video sir...urs video helps me a lot for understanding the coding easily thank u sir...plss upload proper coding for deleting node in bst...I will be waiting for that video sir...
@chenzhuo93 жыл бұрын
Great video!!! You deserve more subscribers!
@Farahat12346 жыл бұрын
Sir your explanation is really very very osam😍🤗
@Karthik70707 жыл бұрын
Video tells about deleting a node with 2 children with making Inorder successor as replacable element. Can we make Inorder predecessor also as replacable element? So at 21:56 timestamp of the video, 9 has two children a & b and Inorder predecessor of 12 will be b and we can replace b. Please correct me if I am wrong.
@foo.13966 жыл бұрын
Nice video. I just have a simple question. For the 2-children deletion, the node with minimum value of right subtree is used for replacement. So, why can't the node with maximum value of left subtree be used?
@supamdeepbains51726 жыл бұрын
we can replace the node with the from the left sub tree that is "maximum value in the left subtree we will move first from the parent node to the left and then keep in moving to the right to find the maximum untill we hit None .and that value will be replaced with parent node so that new value would be less as its from left subtree and being maximum we can say that all the values in the left tree of that is lesser than that
@SahilSharma-zz8nv5 жыл бұрын
I would like to ask that in your delete a node in BST you asaid we can only choose the smallest from right sub-tree but we can also choose the largest from left sub-tree isn't it true ?
@AjeetKumar-mo6xt5 жыл бұрын
Yes we can replace the element to be deleted with its predecessor also
@tensu6835 Жыл бұрын
I think we can replace the max number in the left subtree with the node we want to delete when we are doing with 2 children.
@hailemariamtamirat31254 жыл бұрын
Great explanation in detail, thank you!!
@aqsaibrahim55616 жыл бұрын
nice video......thank alot your lecture helps me alot
@punitpawar13 жыл бұрын
where s the code for this ? I did not see a video which has the code for deletion....if you can please upload the video / share the code link , that will be great...
@citruspun5 ай бұрын
awesome explanation
@sohbetdovranov97986 жыл бұрын
This is so helpful!!! Thank you sir!
@live_cuh_reaction3 жыл бұрын
22:14 is a good example of Heisenberg's principle.
@the-gray-haired-developer6 жыл бұрын
nice work. Please make videos on graph and dynamic prog, greedy topics. Aur Obviously bda sahi bolte ho :)
@judisjeevan49087 жыл бұрын
its awesome sir......nice explanation
@sebinvincent40093 жыл бұрын
is there anyone thinking, for a node with 2 children, why can't we replace the node with the right child and move the left subtree as a left child to the inorder successor? In the scenario of 14:48, why can't we move 10 (along with its children) and make it as the left child of 35 whereas 30 can take the position of 20, directly connected to 50? It will preserve the properties of BST and inorder traversal.
@mirangpuri60573 жыл бұрын
The arrangement of the tree is disturbed in that case for eg 35 was connected to null but now 35 will be connected to 10 in that case .
@salmasulthana33204 жыл бұрын
you are the best sir!!!
@girardroston3706 жыл бұрын
Very clear explanation.
@anshul901006 жыл бұрын
Hi, Like you have said find minimum in right subtree. But in your algo you are continousouly moving while(p!=nulll) { p->p.left } thats ok but with your last Tree if you delete 20 than you have replaced it with 30 but according to your algo you have to replace it with 35 i.e wrong. Please give your suggestion on it.
@haroonkuta6 жыл бұрын
You are wrong at your own statement... 35 wasn't at left. it was at RIght... on the 30 left is NULL so the Algo found 30 the right option... while P is not equal to NULL it will naturally be the lowest number in the right sub-tree because of the property of BST
@AddieInGermany7 жыл бұрын
Sir but can we use inorder predecessor for replacement just like we used inorder successor ?
@NeverGiveUp_oo76 жыл бұрын
yes u can
@varsh50206 жыл бұрын
Very useful.....Great job
@MyLifeMyWorld086 жыл бұрын
Hello Sir, Where is the next video of code explanation ?
@talentamesiannasitorus38336 жыл бұрын
i like your explanation. good job.
@thebishalpaul3 жыл бұрын
simply loved it ❤️❤️
@digitalx7885 жыл бұрын
very clear explanation
@yogeshverma28755 жыл бұрын
After Watching Your Video I Am Able To Progarm The Deletion of a Node From The Tree...
@anushirawan4 жыл бұрын
Thank you; very helpful refresher
@dontknowwhatagoodnameis7 жыл бұрын
nice video. can you post a video about what is time complexity term means? like O(n) O(n^2) and all?
@rashidpervaiz10025 жыл бұрын
Please upload code of this deletion
@HemantSingh-pr7hd4 жыл бұрын
Can't we find the max in the left tree similar to what you are doing with finding min in the right tree?
@SandeshMotoVlogs4 жыл бұрын
Yes we can find i think sir isn't aware about it
@samarthbh7 жыл бұрын
In the last case can we replace 12 which is to be deleted with maximum of the left subtree that is b?
@pawandeepchor896 жыл бұрын
Very well explained :)
@mr.anonymous60983 жыл бұрын
Nice handwriting
@shalomabraham52294 жыл бұрын
Super class. Could you please share the code for deleting
@Farahat12346 жыл бұрын
God bless you sir
@pradeepasivanesan5 жыл бұрын
what happens if we delete the root?
@souravbhowmik94774 жыл бұрын
Thank you vary much.
@satnamsatta11446 жыл бұрын
Sir plz tell if we want to delete root node in BST then how we can delete it
@dr.padmajapulicherla55455 жыл бұрын
Plz explain a c program...for searching an element in BST N also inserting an element in BST
@aparnanandakumar27305 жыл бұрын
Nice video😁😁
@ShubhamTiwari-ks2qg3 жыл бұрын
sir in which video we can find the code
@supamdeepbains51726 жыл бұрын
we can replace the node with the from the left sub tree that is "maximum value in the left subtree we will move first from the parent node to the left and then keep in moving to the right to find the maximum untill we hit None .and that value will be replaced with parent node so that new value would be less as its from left subtree and being maximum we can say that all the values in the left tree of that is lesser than that !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!WRONG EXPLANATION!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@tusharbarman19245 жыл бұрын
please dont stop making this type of videos.
@GurpreetSingh-yy5fn3 жыл бұрын
thank u sir
@stevefrt94957 жыл бұрын
thanks, nice explanation
@xiangwingrace86726 жыл бұрын
One Correction: Deleting non leaf which has 2 nodes, replacing it with in-order predecessor will also work.
@amateurbeginner75387 жыл бұрын
excellent but can you make a video explained the code with recursion is a little complcated , thanks for the help
@pranavbhat927 жыл бұрын
Thank you for the clear explanation! :-)
@TheMiracle965 жыл бұрын
/thanks a lot sir for explaining
@anuragv4004 жыл бұрын
All adobe premier pro transition effects are used in this video :)
@ruhani_choudhary7 жыл бұрын
Is there the proper code we can find by this algorithm?
@lyfokzz38487 жыл бұрын
Ruhani Choudhary tonns of codes are already being there over the internet. you can simply search over the Google.
@prashantshukla72037 жыл бұрын
on github of vivekanand sir
@ahmedabdelreheem47234 ай бұрын
thank you, sir
@ragibshahariar68524 жыл бұрын
god bless you
@adityajha99003 жыл бұрын
sir at last you have teach wrong we could delete inorder predecessor there is no need to fit two children because one of the children will be just smaller than the node to be deleted
@lamcao84434 жыл бұрын
Amazing good job bro !!!
@RahulPatel-hr4qe7 жыл бұрын
thankks you very very much i loved it
@manishshambu26126 жыл бұрын
At 22:01 time... why cant we replace maximum of the left subtree?
@haroonkuta6 жыл бұрын
we can... either maximum of left subtree or minimum in right subtree...
@nackyding4 жыл бұрын
Thank you.
@ranjan19able5 жыл бұрын
Cn you post the code for Delete a node from Binary Search Tree.
@samiramaniyar19846 жыл бұрын
Thank you Sir
@mounikasingireddy935 жыл бұрын
can you please explain general tree
@PramodRj5 жыл бұрын
excellent
@a_l_o_k_19917 жыл бұрын
awesome tutorial...where is the link of next video ???
@sagarpatil-js1fy7 жыл бұрын
sir can you post some videos on hashing
@Armaghan6197 жыл бұрын
sir where is the link to the next video?
@basavarajpatil98214 жыл бұрын
@22min Sir even right child may also have children.
@rajeshdey14415 жыл бұрын
Where is the next video As you told , for coding..
@dinosaurx68516 жыл бұрын
thanks sir
@sudhanshuagrawal85986 жыл бұрын
sir please provide the actual code of deletion in bst
@rejinapv24723 жыл бұрын
we want the program also
@VY-zt3ph6 жыл бұрын
Sir agar mera kisi coding company mein job laga Main sabse pehle aap hi mithai khilaoonga
@aanchalsharma52645 жыл бұрын
Where is code
@nikhilverma8825 жыл бұрын
PLEASE POST CODE FOR THE SAME
@cvismenu7 жыл бұрын
Thanx
@zaryabzubair83932 жыл бұрын
Please make video to delete root node
@MrSahilkaura2 жыл бұрын
Root node is the same as deleting a node with 2 childern
@Prabhakar-bh2cv6 жыл бұрын
Good
5 жыл бұрын
@ 0:01 should have been "chai peelo"
@Realme07075 жыл бұрын
And the viewers brings and sips chai while watching video lol xD