Python Program To Implement Binary Search Tree | Program 6 | Deletion{Except Root Node With 1 child}

  Рет қаралды 36,868

Amulya's Academy

Amulya's Academy

Күн бұрын

Пікірлер: 57
@gajanantayde
@gajanantayde 3 жыл бұрын
I get fully absorbed in learning because of your teaching and forget to like the video always🤣
@miroslavdanilov902
@miroslavdanilov902 3 жыл бұрын
This is by far the best explanation of BST node deletion on KZbin.
@uriaheric1565
@uriaheric1565 3 жыл бұрын
you prolly dont give a damn but does anyone know of a method to log back into an instagram account? I was stupid forgot my password. I would love any tips you can give me
@angelokaiden7196
@angelokaiden7196 3 жыл бұрын
@Uriah Eric instablaster :)
@uriaheric1565
@uriaheric1565 3 жыл бұрын
@Angelo Kaiden i really appreciate your reply. I got to the site through google and im in the hacking process atm. I see it takes quite some time so I will get back to you later when my account password hopefully is recovered.
@uriaheric1565
@uriaheric1565 3 жыл бұрын
@Angelo Kaiden it worked and I finally got access to my account again. I'm so happy! Thanks so much you saved my account!
@angelokaiden7196
@angelokaiden7196 3 жыл бұрын
@Uriah Eric Glad I could help :D
@shubhamjain1316
@shubhamjain1316 Жыл бұрын
You are greatest Amulya ma’am
@kancharakuntlavineethreddy9320
@kancharakuntlavineethreddy9320 3 жыл бұрын
Ma'am If we try to delete an element that is not present, it's automatically deleting some other element(Preorder was not the same as Initial). I tried to debug the code. And it's working when we "return self" in else part. if data < self.key: if self.lchild: self.lchild = self.lchild.delete(data) else: print("given node is not present in the tree") return self elif data > self.key: if self.rchild: self.rchild = self.rchild.delete(data) else: print("given node is not present in the tree") return self Just wanted to share with the community:)
@LlanzKennethLuy
@LlanzKennethLuy Жыл бұрын
You can try this: if data < self.key and not self.lchild or data > self.key and not self.rchild: print('delete_node():', data, 'was not found') return if data < self.key: self.lchild = self.lchild.delete(data) return self if data > self.key: self.rchild = self.rchild.delete(data) return self
@nayankamthe6734
@nayankamthe6734 3 жыл бұрын
please create placment coding series. it will help us very much.
@pindropnonsense6746
@pindropnonsense6746 3 жыл бұрын
Mam can you explain last “return self “ statement like my pre order is 10 ,1,2,12,15,25 if I deleting 15 without add return self statement it give me pre order 10,1,2 but actual is 10,1,2,12,25 so please explain me how it work.
@smarty420ful
@smarty420ful 3 жыл бұрын
return self is explained in next video
@ramyakotike85
@ramyakotike85 2 жыл бұрын
Mam, can you please provide a video to count no of leaf nodes in BST?
@shankhadeepghosh6086
@shankhadeepghosh6086 2 жыл бұрын
Mam, some confusion in when delete 1 child node .. You wrote self.rchild is none it's means .. In a example in your tree the last rchild is 500 then if we writen temp = self.lchild then how it's store 500 in a temp ?? Please clear my doubt 🙏🏻🙏🏻🙏🏻
@aswath8265
@aswath8265 3 жыл бұрын
Really amazing
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you 😊
@rraviteja2460
@rraviteja2460 3 жыл бұрын
Mam level order is possible or not
@snr-u6h
@snr-u6h 3 жыл бұрын
Thank u mam😁😁😁
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Pleasure 😊
@aasthapant
@aasthapant 7 ай бұрын
what should be the code if we want to replace 50 with 70?, cause i dont think it will be the same
@junior_tee5320
@junior_tee5320 3 жыл бұрын
Is there a video on creating a program with menu's?
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
No 😊
@venkateshkoneti2116
@venkateshkoneti2116 2 жыл бұрын
madam, What about the repeated elements?
@shashidhardevraj
@shashidhardevraj Жыл бұрын
duplicates are not getting inserted as shown in the previous video series
@dineshyadav9457
@dineshyadav9457 3 жыл бұрын
thank you ma'm
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Pleasure 😊
@saranyav5244
@saranyav5244 3 жыл бұрын
Mam,pllz upload how to install c c++java python on windows 7...and how transfer the data from cd to system and syst to cd ....plzzzz upload
@saranyav5244
@saranyav5244 3 жыл бұрын
Teach about applet program in java mam plz
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Will try 😊
@wagishasingh_2203
@wagishasingh_2203 3 жыл бұрын
Ma'am plz upload the remaining videos ASAP
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Sure 😊
@anythingit2399
@anythingit2399 3 жыл бұрын
@@AmulsAcademy Ma'am, I am done with 72/72 videos, are there any video left? Also, please solve problems from Leet Code Ma'am, it will really help
@venkateshwar9641
@venkateshwar9641 3 жыл бұрын
Why we are returning self at the last step?
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Check out the next video, in that I explained this method with example 😊
@mamo100
@mamo100 3 жыл бұрын
That is a WRONG binary search tree, because 500 can not be the right child of 300. You can see the BST in 07:00
@codeitoff4334
@codeitoff4334 2 жыл бұрын
it can be..its >300
@aswinks
@aswinks 2 жыл бұрын
its correct
@sinbad2597
@sinbad2597 2 жыл бұрын
U wrong 🗿
@naveenchebolu6757
@naveenchebolu6757 3 жыл бұрын
Plz upload same for Java programming also from basics
@omalie745
@omalie745 3 жыл бұрын
Apply the same logic. You don't pay her.
@shreehari2589
@shreehari2589 2 жыл бұрын
@@omalie745 nice reply 👌🏻
@tejasrees2797
@tejasrees2797 Жыл бұрын
Can u please say level order traversing code
@saranyav5244
@saranyav5244 3 жыл бұрын
Plz teach about hardware parts mam
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Will try 😊
@zainabbohra2915
@zainabbohra2915 3 жыл бұрын
mam what about root node not getting ?
@zainabbohra2915
@zainabbohra2915 3 жыл бұрын
someone please help me
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Check the next video {how to delete root node}
@zainabbohra2915
@zainabbohra2915 3 жыл бұрын
@@AmulsAcademy mam will you please 2 and 3 programs on recursion ,how calling is happening all that one by one ,basic recursion ,and yes mam old videos of recursion i had seen ,but i am little bit confusion it ,so please mam will you upload more videos on recursion ,
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
I will a make a video on that 😊
@iNeFFaBLeSaPiEN
@iNeFFaBLeSaPiEN Жыл бұрын
thanks
@selvanm2872
@selvanm2872 3 жыл бұрын
nice
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you 😊
@donhjoe2162
@donhjoe2162 2 жыл бұрын
Are you a children or a girl? Thank for your help.
@sinbad2597
@sinbad2597 2 жыл бұрын
What in the 💀💀
@shubhamjain1316
@shubhamjain1316 Жыл бұрын
You are greatest Amulya ma’am
Python Program To Implement Binary Search Tree | Program 2 | Insertion
18:28
Thank you mommy 😊💝 #shorts
0:24
5-Minute Crafts HOUSE
Рет қаралды 33 МЛН
Binary Tree Algorithms for Technical Interviews - Full Course
1:48:53
freeCodeCamp.org
Рет қаралды 744 М.
Understanding B-Trees: The Data Structure Behind Modern Databases
12:39
How Binary Search Makes Computers Much, Much Faster
6:51
Tom Scott
Рет қаралды 1,4 МЛН
Binary Heap Operations | Data Structure
19:48
Amulya's Academy
Рет қаралды 24 М.
Delete a node from Binary Search Tree
18:27
mycodeschool
Рет қаралды 1,2 МЛН
Python Data Structures #5: Binary Search Tree (BST)
31:54
Brian Faure
Рет қаралды 169 М.
AVL Trees & Rotations (Self-Balancing Binary Search Trees)
20:38
Back To Back SWE
Рет қаралды 362 М.
Data Analysis with Python for Excel Users - Full Course
3:57:46
freeCodeCamp.org
Рет қаралды 3,4 МЛН