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

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

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 11 ай бұрын
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.
@ramyakotike85
@ramyakotike85 Жыл бұрын
Mam, can you please provide a video to count no of leaf nodes in BST?
@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
@aswath8265
@aswath8265 3 жыл бұрын
Really amazing
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you 😊
@shankhadeepghosh6086
@shankhadeepghosh6086 Жыл бұрын
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 🙏🏻🙏🏻🙏🏻
@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
@iNeFFaBLeSaPiEN
@iNeFFaBLeSaPiEN Жыл бұрын
thanks
@aasthapant
@aasthapant 5 ай бұрын
what should be the code if we want to replace 50 with 70?, cause i dont think it will be the same
@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
@saranyav5244
@saranyav5244 3 жыл бұрын
Teach about applet program in java mam plz
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Will try 😊
@dineshyadav9457
@dineshyadav9457 3 жыл бұрын
thank you ma'm
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Pleasure 😊
@rraviteja2460
@rraviteja2460 3 жыл бұрын
Mam level order is possible or not
@junior_tee5320
@junior_tee5320 3 жыл бұрын
Is there a video on creating a program with menu's?
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
No 😊
@snr-u6h
@snr-u6h 3 жыл бұрын
Thank u mam😁😁😁
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Pleasure 😊
@selvanm2872
@selvanm2872 3 жыл бұрын
nice
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you 😊
@saranyav5244
@saranyav5244 3 жыл бұрын
Plz teach about hardware parts mam
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Will try 😊
@venkateshkoneti2116
@venkateshkoneti2116 2 жыл бұрын
madam, What about the repeated elements?
@shashidhardevraj
@shashidhardevraj Жыл бұрын
duplicates are not getting inserted as shown in the previous video series
@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
@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 😊
@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 😊
@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 Жыл бұрын
U wrong 🗿
@donhjoe2162
@donhjoe2162 2 жыл бұрын
Are you a children or a girl? Thank for your help.
@sinbad2597
@sinbad2597 Жыл бұрын
What in the 💀💀
@shubhamjain1316
@shubhamjain1316 Жыл бұрын
You are greatest Amulya ma’am
Python Program To Implement Binary Search Tree | Program 2 | Insertion
18:28
Farmer narrowly escapes tiger attack
00:20
CTV News
Рет қаралды 11 МЛН
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 23 МЛН
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 84 МЛН
AVL Trees & Rotations (Self-Balancing Binary Search Trees)
20:38
Back To Back SWE
Рет қаралды 352 М.
How Binary Search Makes Computers Much, Much Faster
6:51
Tom Scott
Рет қаралды 1,4 МЛН
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 118 М.
Google Coding Interview With A High School Student
57:24
Clément Mihailescu
Рет қаралды 4,2 МЛН
Comment Box 3 | Ma'am Are You Married ?
9:56
Jenny's Lectures CS IT
Рет қаралды 3 МЛН
Delete a node from Binary Search Tree
18:27
mycodeschool
Рет қаралды 1,1 МЛН
Farmer narrowly escapes tiger attack
00:20
CTV News
Рет қаралды 11 МЛН