Delete Node Operation in Binary Search Tree (BST) | Working + Pseudocode (With Full C++ Code) | DSA

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

Simple Snippets

Simple Snippets

Күн бұрын

Пікірлер: 126
@SreyRc
@SreyRc 3 жыл бұрын
A one-hour-long video dedicated to explaining just the deletion operation in a binary tree. You, my friend, are a legend. Massive props for your grind! 🙌
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Thanks bro. Had to make it very detailed otherwise I would have missed important intermediate steps. please do share the videos & our channel with your friends too. Thats the biggest help and support you can give back to this channel! 😇
@user-nm4vn9tq5o
@user-nm4vn9tq5o 3 жыл бұрын
The best and most detailed video I found on whole KZbin for this topic.I have been following your playlist for DSA and all I can say is your teaching is really awesome.Please put the videos more often and also please please make videos on threded binary tree.
@dimoskaragiannis3051
@dimoskaragiannis3051 7 ай бұрын
No joke, I think you are genuinley one of the best teachers on youtube. Probably one of the best accounts on youtube. Genuinely teaching these ideas and concepts in so much depth it is literally impossible not to undestand how these structures and algorithms work, regardless of the technical skills of the individual watching. Seriously thank you. Been a massive help in my assignments and general learning for uni and for helping me to enjoy CS again 🙏
@SimpleSnippets
@SimpleSnippets 7 ай бұрын
Thank you so much 🙏 this means a lot to me ☺️
@surajt3843
@surajt3843 2 жыл бұрын
Bhai I was following Apna College from starting of DSA course and i don't know about your channel at that time . But Believe me brother whenever they teach too fast and if any topic i do not understand or I can say any problem i face there ---------The only solution for me is YOU Brother-------- The way you explain the things yar is just Unbelievable ----------Love you bhai and Thanks a lot for doing Hard Work for Us----------------
@SimpleSnippets
@SimpleSnippets 2 жыл бұрын
Thanks Suraj for such amazing positive feedback bro ✌️😊🙏❤️
@Katbrainshabibi
@Katbrainshabibi 2 жыл бұрын
This is the BEST BEST 10000% BEST Lecture of Deletion Of Node In BST on Entire KZbin, Explained every Point Welldone Sir.....
@vikramsinghgurjar0810
@vikramsinghgurjar0810 4 жыл бұрын
Really love your progress dude. I remember studying from your channel. For my 2nd year exams. Now I've completed my graduation. Go go go! Miles more to go!
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thank you so much Vikram. Glad to hear from a old member who has supported this channel since so long 🤟
@vikramsinghgurjar0810
@vikramsinghgurjar0810 4 жыл бұрын
@@SimpleSnippets yea I'm here since you had 20k subs. And now see where you're silver play button!!!!!!
@rajav4861
@rajav4861 4 жыл бұрын
Hi Tanmay Sir! Your DSA playlist is just amazing. I hope you will cover all the remaining topics as well. Thank You :)
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Yes, sure I will Raja. Please keep sharing our videos and channel with your friends!
@priyanshigusain6722
@priyanshigusain6722 2 жыл бұрын
you are amazing sir ♥️♥️. i went through 3 to 4 different videos because of this problem but didn't understood anything then i found your video and now i don't even have a 0.000001% doubt.😁😁 you are my life saver, best teacher love you sir👍🙏🙌
@jamestogher1098
@jamestogher1098 2 жыл бұрын
I maintain this is one of the best programming playlists on KZbin. I've learned a lot
@SimpleSnippets
@SimpleSnippets 2 жыл бұрын
Thanks James 😊 means a lot
@shubhamb7272
@shubhamb7272 3 жыл бұрын
Your way of teaching is soo good! I was struggling with the concepts of recursion but you made it look so simple!! Hats off to you👏👏
@coding8000
@coding8000 2 жыл бұрын
Dry Run Explanation is best on the planet earth., thank you.
@krishnendudakshi3452
@krishnendudakshi3452 2 жыл бұрын
This explanation is simply awesome, every part and every line of code is explained some carefully, I will definitely refer this video if someone finding himself or herself difficult to understand Binary tree. Thank you sir, this video helped me a lot.
@debnathsinhababu6666
@debnathsinhababu6666 2 жыл бұрын
bro really your dedication is on next level
@YashKatiyar-r3h
@YashKatiyar-r3h 4 жыл бұрын
I came here after watching JavaScript video in TELUSKO and recognized your voice, watching in Kanpur
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Welcome to Simple Snippets family 🤟😊
@PrinceKumar-rt7qc
@PrinceKumar-rt7qc 3 жыл бұрын
are you a professor or something, man u are great! lovely explanation.
@chanduvamsi1841
@chanduvamsi1841 4 жыл бұрын
Hi Tanmay Sir! I really appreciate your work on this DSA Playlist and one year from now on, this playlist will be number one not just on KZbin but on all of the Internet regarding DSA. I have a kind suggestion while discussing one particular data structure for example., a linked list. You have explained and implemented all the basic functions regarding them. Can you also upload videos on most asked coding questions on that data structure? Like reversing a linked list, finding a loop in a linked list, removing the loops, or flattening, merge two linked lists, etc. Videos on these would be really helpful for students in their placement season. Thanks for all your time and effort you're putting into making these. Love from VIT :)
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thank you so much Chandu for such wonderful and kind words. About your request, I definitely have plans to cover competitive programming related problems and make a full separate playlist but these videos take a lot of time and effort to make hence I have no idea when I will be able to make them. But yes surely our channel will cover many more DSA topics and even competitive programming soon!
@nikhillvombatkere9480
@nikhillvombatkere9480 4 жыл бұрын
Your videos really help and Ive watched most of your DSA and C++ videos. They explain the concept step by step impeccably and the way you put across the stuff is really catchy and nice to look at and makes learning fun... I HOPE YOU WILL COVER GRAPHS AS WELL as that would be beneficial to a lot of people. Thanks anyway cheers PEACE:)
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thanks buddy 😊 and yes I will cover all these fundamentals soon. Please in the mean time it'll be great if you can share our channel & videos with your friends 🤟
@nikhillvombatkere9480
@nikhillvombatkere9480 4 жыл бұрын
@@SimpleSnippets Great and yeah i tell all my friends about your channel and stuff
@MUSHIN_888
@MUSHIN_888 2 жыл бұрын
I love how thorough this video was. Thanks a lot!
@programmertik2046
@programmertik2046 4 жыл бұрын
Explaination is simply great and awesome out of all the videos available there 👍💯💯💯 Since length of vid is big it's reach might be low so I suggest u to break in two parts WORTH WATCH 👍👍
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thanks a ton! Some topics cant be made in 2 parts. But yes mostly I try to make small videos only. These big topics are exceptions though!
@vithunchandra8420
@vithunchandra8420 3 жыл бұрын
thank u bud, finally i know how to make a change for parent node pointer value to the child node with just use recursion and return statement. i almost break my head to get the solution for that, thanks for your detailed explanation. i hope you still make video about data structure even though this series build with full of tears hahaha
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Glad it helped
@gamsterilyass2952
@gamsterilyass2952 2 ай бұрын
Because With your explanation everything becomes easy ❤
@nayabtahir8454
@nayabtahir8454 3 жыл бұрын
Helo! Tanmay Sir, your playlist is amazing and remained a thorough guide through my DSA course. Please cover Red-black trees as well.
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
As soon as possible
@shakshi9108
@shakshi9108 3 жыл бұрын
The most beautiful and elegant explanation
@samafianasar3749
@samafianasar3749 3 жыл бұрын
your videos are so interesting and amazing everybody can easily clear his or her concepts whats amazing effort you doo really so nice videos
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Glad you like them!
@sirichandana3864
@sirichandana3864 4 жыл бұрын
badly waiting for all concepts on heap frankly i used hate and not understand data structures but then you made it quite opposite thankssssssss a lot :)
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thats really great to know buddy🙏 Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
@AbdullahJan-vy3es
@AbdullahJan-vy3es Жыл бұрын
Best ever video on Internet without ant doubt
@divyanshushukla795
@divyanshushukla795 4 жыл бұрын
bhai please if you get time, upload the remaining videos , these are extremely helpful .
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Will do soon!
@vidyabharadwaj7711
@vidyabharadwaj7711 4 жыл бұрын
This is an amazing course tanmay keep going! hatsoff to ur efforts to do this!!!!!! Can i know still how many videos are coming up? I am eagerly waiting for it please upload as soon as possible :) cheers to ur amazing content!!!
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thanks a ton Vidya. And many more videos coming up in this course. There is no fix count or end date cause DSA is an endless subject. But I will cover all fundamentals like graphs, hashing etc
@vidyabharadwaj7711
@vidyabharadwaj7711 4 жыл бұрын
@@SimpleSnippets Welcome :) If possible upload it soon coz many including me are waiting frm months along for videos ahead :)
@muhammadmahad
@muhammadmahad Жыл бұрын
Thank you so much,Tanmay ! The amount of hard-work you are putting is amazing
@SAKSHIKUMARIP
@SAKSHIKUMARIP 3 жыл бұрын
Lotzz of respect sir...plz keep doing like this
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Thank you, I'm glad to hear this. Please do share the videos with your friends too. That's the biggest help and support you can give back to me 🙏😊
@KashifKhan-tz8py
@KashifKhan-tz8py 2 жыл бұрын
Thank you so much I have no words for this explanation sir.
@kalpeshmali1476
@kalpeshmali1476 4 жыл бұрын
Sir plz complete this series ASAP
@muhammadnauman1896
@muhammadnauman1896 4 жыл бұрын
you're doing a great job dude...kindly suggest me books for data structure and alg or resources from where you learn humble request...thankyou
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Honestly I have never opened a single book to study DSA or any programming language subject. Everything is there online.
@pranavsingh1081
@pranavsingh1081 3 жыл бұрын
Worth investing time
@deepaklavate4165
@deepaklavate4165 3 жыл бұрын
Thank you for such detailed and amazing explanation!!!
@sajaldwivedi1207
@sajaldwivedi1207 4 жыл бұрын
Thank You Sir, For Providing Such Valuable Content !
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
It's my pleasure. Please support me by sharing the videos with your friends!
@dwijenmahanta4278
@dwijenmahanta4278 3 жыл бұрын
You are great, for real.
@shubhamKumar-mb6he
@shubhamKumar-mb6he Жыл бұрын
Bro u r a legendary coder ❤️
@SimpleSnippets
@SimpleSnippets Жыл бұрын
Thank you Shubham 🙏❤️ not that legendary but I can surely explain well 😊
@ashishkadam4279
@ashishkadam4279 4 жыл бұрын
May i please know when you are going to upload reamaining topics.Your videos are very helpful
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
As soon as possible
@rimshaasif7629
@rimshaasif7629 3 жыл бұрын
sir ap na hotay to mai fail hjati... Thanks Alot.
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
I am glad you got help from this video!
@MKSundaram
@MKSundaram 3 жыл бұрын
Hope your efforts don't go UN-NOTICED. May God Bless You. :-)
@jfbjavaforbeginners4176
@jfbjavaforbeginners4176 3 жыл бұрын
Helped me a lot and am thankful
@70_it_radheshyambhagat63
@70_it_radheshyambhagat63 2 жыл бұрын
amazing video sir lot of love ♥♥♥♥
@SimpleSnippets
@SimpleSnippets 2 жыл бұрын
Thanks a ton
@vikashgupta3305
@vikashgupta3305 3 жыл бұрын
To the point deep explanation loved it ❤️. Bhaiya one doubt at 54:26, can we replace line no. 4.3.3 with "delete temp;" instead of recurrsive call. Coz temp variable will already be pointing to the node which is to be deleted... Do reply bhaiya❤️.
@dipteshdeore5207
@dipteshdeore5207 2 жыл бұрын
If you deleted the temp them the pointer which is pointing to temp will be a dangling pointer...so we have to assign null to that....hence you can't delete the temp directly. ( Dangling means pointer pointing to the address which got deleted)
@tejavaththirupathi1176
@tejavaththirupathi1176 4 жыл бұрын
Waiting for the continues topic's videos.
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Working on it!
@kalpanakathait11
@kalpanakathait11 3 жыл бұрын
Thank you so much sir for this amazing video. This was very helpful..
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Glad to know that this video was helpful Kalpana 😊✌️ please do share it with your friends too. That's the biggest support you can give by sharing the videos 😊
@aryantiwari-datascience5562
@aryantiwari-datascience5562 4 жыл бұрын
sir will u cover the avl and red black tree also in the upcoming videos??
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
AVL I will. Will have to check the red black tree 👍
@ujjwalchaudhary525
@ujjwalchaudhary525 4 жыл бұрын
Hey, please make a video on heap sorting also, as I am covering ds algo playlist of yours, You are doing great work for us...peace!!
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Will upload soon Ujjwal! Glad to hear you are taking DSA course on Simple Snippets. Please do share our videos with your friends too!
@ujjwalchaudhary525
@ujjwalchaudhary525 4 жыл бұрын
​@@SimpleSnippets Yaa ovio, And I have completed all the videos of that playlist in nearly 3 weeks and now I want to step up my level of learning side by side as your playlist still not completed, so can you guide, what I have to do after that. And, same as earlier you are doing great!!!
@usamabinmuzaffar692
@usamabinmuzaffar692 3 жыл бұрын
Hey thanks for the algorithm. I understood it and the code as well. But I think that for some students using recursion can be a little daunting. So, I've made a function using this same algorithm that doesn't use recursion rather it uses loops. I'll update this comment with a drive link to the code of my delete function. Lemme know what you think.
@muhammadazeem6077
@muhammadazeem6077 3 жыл бұрын
please give me tht code bro please
@muhammadazeem6077
@muhammadazeem6077 3 жыл бұрын
i also need help bro can i please have your contact plzzz im from pakistan
@nizarmejri9478
@nizarmejri9478 3 жыл бұрын
Great explication Thanks a lot
@kunalvaishnav9283
@kunalvaishnav9283 2 жыл бұрын
awesome explanation
@anshi6205
@anshi6205 3 жыл бұрын
Thankyou for your efforts
@gurjotsingh5924
@gurjotsingh5924 4 жыл бұрын
Please make a video on to convert binary search tree into a sorted linked list.
@gamsterilyass2952
@gamsterilyass2952 2 ай бұрын
Bro, if you could just put in your mind the idea of ​​creating a playlist that contains all the things we need to get started with machine learning. ❤😢
@hansel3234
@hansel3234 2 жыл бұрын
you got urself a new subscriber goddamn u save my life. Thank you so much my dude :)
@gamingfingers4523
@gamingfingers4523 4 жыл бұрын
Enrolled in simple snippets DSA 😂 btw can you approximately tell how long will u take to complete this course 👍
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
No clue buddy, I have been making videos in this playlist for about a year now 😅 This playlist is going to be the biggest FREE DSA course on youtube for sure!
@UnKnown-id7ih
@UnKnown-id7ih 3 жыл бұрын
@@SimpleSnippets thanks bhiya😊
@krushnapatil9196
@krushnapatil9196 3 жыл бұрын
full suppot
@MuhammadAli-sd9ol
@MuhammadAli-sd9ol 4 жыл бұрын
Kindly can you tell me how much vids are remaining? and in how many days are you planning to cover it?? Thanks
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
A lot of videos & a lot of time is what I can tell you at this point of time 😅
@MuhammadAli-sd9ol
@MuhammadAli-sd9ol 4 жыл бұрын
@@SimpleSnippets Ok that doesnt help at all and im scared a little bit :D
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
@@MuhammadAli-sd9ol I'm sorry I didn't mean to be not informative. But on a serious note, DSA is a never ending subject😅 and to make videos on these topics takes a lot of time & effort. This video itself took me about 7 trials before I finally got it right. But yeah I've planned to cover a lot more topics. You can see the first video where we've discussed about the syllabus in general so you can check topics that are going to be covered. It'll mostly be more then that only but yeah it's gonna take quite a while 😅😊
@MuhammadAli-sd9ol
@MuhammadAli-sd9ol 4 жыл бұрын
@@SimpleSnippets Thanx for your kind reply.
@tenalicodes3107
@tenalicodes3107 2 жыл бұрын
What app and digital pad are you using?
@arnabmaiti4839
@arnabmaiti4839 3 жыл бұрын
Viewing again😌
@almightyblazettv8421
@almightyblazettv8421 2 жыл бұрын
EXECELLANT JOB
@DeepakSingh-le6di
@DeepakSingh-le6di 4 жыл бұрын
Sir, error came *** Error in `./prog': double free or corruption (out): 0x00007ffdeaf85860 ***
@DeepakSingh-le6di
@DeepakSingh-le6di 4 жыл бұрын
videos on avl trees and redblack trees please, self balancing trees.
@hanksung7791
@hanksung7791 2 жыл бұрын
Execuse me.If 4.3 turn to search the Maximum of r->left. Is the result different from the minValueNode (r->right) ?
@ParamKeshkamat
@ParamKeshkamat 4 жыл бұрын
Is this series is completed or more videos are on the way? And btw thanks for uploading such a good video series!😃
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
More to come! Thank you so much buddy. It would mean a lot if you could please share our channel and videos with your friends too ✌
@ParamKeshkamat
@ParamKeshkamat 4 жыл бұрын
I already shared this playlist! It's very much important for CS and IT students 😃
@JAIVORARA
@JAIVORARA 4 жыл бұрын
Can u send the link for downloadind the c++ compiler which uve used in prvs videos
@DeepakSingh-le6di
@DeepakSingh-le6di 4 жыл бұрын
what is the time complexity for deleting and inserting node in bst?
@shivajibanoth306
@shivajibanoth306 4 жыл бұрын
Hlo bro can u make a video on B tree(not binary tree) creation?
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Yes will cover it soon!
@user-zr3eu2oo7s
@user-zr3eu2oo7s Жыл бұрын
🔥🔥
@hamzashahshah3953
@hamzashahshah3953 3 жыл бұрын
love u from Pakistan
@siobhanmarshall4048
@siobhanmarshall4048 2 жыл бұрын
Why do we need to return the address of n1 back to the main function? What happens there? At 36.00 in the video
@FANSasFRIENDS
@FANSasFRIENDS 2 жыл бұрын
Instead of making minValueNode function can't we just put the content of it inside else loop so that we can directly delete the node instead of having to use recursion in the last line.
@manibarathi08
@manibarathi08 4 жыл бұрын
what if there is only one node in the BST and we delete it ..??
@newbie6449
@newbie6449 6 ай бұрын
It will delete the value and then 1st condition will be true (if r==null)
@meiaraju6940
@meiaraju6940 4 жыл бұрын
What about nMax? You didn’t use nMax anywhere. For left subtree we need nMax value. Please make me clear. I Don't understand this matter.
@vikasgond8279
@vikasgond8279 3 жыл бұрын
Suppose a BST with values 1,2,3,4,5,6 I want to delete node with val=1 so node with val=2 will be the root node but your code returns an address while printing tree in print2D function Print2D Tree: 15863616 just share how to rectify these??
@abhishekkanojia2816
@abhishekkanojia2816 3 жыл бұрын
op
@mkdadmahfoud922
@mkdadmahfoud922 3 жыл бұрын
there is an error it is when we don't have a right subtree and we want delete the root node
@aesthetic_vibes_404
@aesthetic_vibes_404 3 жыл бұрын
Error while delting node with 2 children
@elijahweston-capulong9662
@elijahweston-capulong9662 2 жыл бұрын
doesn't work for deleting a tree with only a root
@viveksuman9600
@viveksuman9600 3 жыл бұрын
My program was not working for third case. I wrote while(current != NULL) instead of while(current->link != NULL). Lol it took me 3 hours 🥴😅
@JAIVORARA
@JAIVORARA 4 жыл бұрын
??? u reply only to people who compliment you?
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Nothing like that. Did you comment anything ?
What is Balancing a binary tree and why do we need balancing
25:39
Simple Snippets
Рет қаралды 36 М.
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 118 МЛН
This dad wins Halloween! 🎃💀
01:00
Justin Flom
Рет қаралды 68 МЛН
Real Man relocate to Remote Controlled Car 👨🏻➡️🚙🕹️ #builderc
00:24
Каха и лужа  #непосредственнокаха
00:15
My 2 Year Journey of Learning C, in 9 minutes
8:42
VoxelRifts
Рет қаралды 644 М.
The Last Algorithms Course You'll Need by ThePrimeagen | Preview
16:44
Frontend Masters
Рет қаралды 324 М.
3 Types of Algorithms Every Programmer Needs to Know
13:12
ForrestKnight
Рет қаралды 495 М.
Binary Search Algorithm - Computerphile
18:34
Computerphile
Рет қаралды 163 М.
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 118 МЛН