I'm a simple man, I see recursive function, I panic.
@savitar81834 жыл бұрын
lol me too
@fawadmirza.4 жыл бұрын
I thought you were a simple cat
@piyushnandurdikar92344 жыл бұрын
haha.. epic
@adityasahu964 жыл бұрын
I hope you don't mind me putting this as my status
@palashbundele5354 жыл бұрын
xDDDD
@HollowPiero10 жыл бұрын
You make me understand in 18 min what my teacher couldn't in 2 hours. Very Good.
@mycodeschool10 жыл бұрын
Thanks :)
@pradeepkumaryadav96417 жыл бұрын
yes this videos are brilliant
@chaudharyadityakumar61497 жыл бұрын
bro your r awesome.Why your not making new videos.I am in graduation and I am studying programming from 9 class ..I have come across many teachers but you are amazing. You can be one of the best programming teachers on youtube.
@zacharyhe57197 жыл бұрын
that's the real thing
@chaudharyadityakumar61497 жыл бұрын
bro i recently find out that the guy is dead
@simpleffective1865 жыл бұрын
this guy is the best teacher ever and you can't even find his name on the channel. Thank you for your work, humble Animesh Nayan.
@solomonleo30253 жыл бұрын
7 years later.... Teachers at clg:- Still sucks at DSA mycodeschool:- Still rules at DSA
@abdellatif.x81273 жыл бұрын
XD
@nguaial84908 жыл бұрын
You are much better than most of cocky PhD professors who needs to learn how to write neatly and speak slowly. Most of professors are trying to show off how smart they are. So arrogant ...
@AliRazaiamaliraza8 жыл бұрын
You should respect your teachers, no matter how they are and what they do... -_-
@elvisdurmishi98937 жыл бұрын
Ali Raza no you shouldnt,respect is earned,if they don't know how to teach then they should just quit and stop wasting everyones time
@daliamohamed28587 жыл бұрын
why should i ? i paid money to learn if they r bad they should quit and stop wasting my time ! or to do researching staff far away from teaching n wasting time !
@sujoymitra10126 жыл бұрын
Ali Raza u r right, u should respect ur teachers, no matter what they know or teach, and most importantly how they teach but in some cases if a teacher boasts about his knowledge in collg and that doesn't quite seem nice off course, that may be wrong on the teacher's part irrespective of whether the knowledge the teacher has is right or wrong.
@TheseEyesSeeDarknessClearly5 жыл бұрын
Idiot. @@AliRazaiamaliraza
@MikeAllaway10 жыл бұрын
Your videos are brilliant. Very clearly explained and thorough. They will help many people and you should be proud of your great work
@mycodeschool10 жыл бұрын
Mike Allaway Thanks a lot :)
@robinfr9310 жыл бұрын
I second what Mike said!!
@GGlearn Жыл бұрын
best teacher ever
@shivachandrachary10 жыл бұрын
Omg!, I couldn't have asked for a better explanation. It felt like I coded the whole algorithm myself. Thanks!!
@Jamesbond-vy1rq25 күн бұрын
10 years ago , and still the best data structure professor . Better than my university professors 100 times . Thank you dear.
@abhijeetjain85918 жыл бұрын
rather than just saying "thank you" in comments , we should also turn off adblocker while watching these awesome videos !
@gericapo87396 жыл бұрын
Fair
@shyam56315 жыл бұрын
He is dead.
@ekashto5 жыл бұрын
@@shyam5631 How do you know?
@shyam56315 жыл бұрын
@@ekashto he was a popular person and also he was a red coder.
@vighneshk5094 жыл бұрын
@@shyam5631 dude his partner passed away not him there were two guys
@modguy98942 жыл бұрын
8 years gone by and it still is more valuable than the class lectures
@Panaxis6 жыл бұрын
In 18 minutes I just learned way more than I did in class since January. Thank you so much! I cant wait to watch your other videos!
@austinbvi5 жыл бұрын
You're an angel! I'm binging the entire playlist prepping for an interview.
@shivamdhir6403 жыл бұрын
how did the interview go ?
@austinbvi3 жыл бұрын
@@shivamdhir640hmm I did a few that season and don’t remember which that comment was referencing but overall went like 4 for 6 offer-wise-this playlist is great, I’d crank out leetcode problems related to the topic alongside the videos
@veereshranjan35195 жыл бұрын
The explanation about BST was splendid but this is a master piece because you not only made the concept clear but also implementation in the actual program.. hats off
@chuanyu88134 жыл бұрын
The best video I have seen until now for explaining data structures and algorithms. Fantastic! Clean and concise!
@inclinedscorpio5 жыл бұрын
*Could you please teach my teacher ?????*
@gauravchatterjee43135 жыл бұрын
LOL HAHAHAHA
@phuckhoinguyen69385 жыл бұрын
Best comment =))))
@abhi_pandit164 жыл бұрын
Bro,,He is no more 😢
@ninja-gh4 жыл бұрын
@@abhi_pandit16 Bro what are you telling?
@tanishqsaxena5974 жыл бұрын
@@abhi_pandit16 seriously ???
@abhishiekmahajan91035 жыл бұрын
You make it so interesting ,this 18 minutes were shortest in my life.
@pcpardon8 ай бұрын
Even though, You are long gone, your work and legacy still inspires me. Even today, when I wanted have quick refresh on my basics, I would still visit here. May you attain nibbana.
@pkj69623 жыл бұрын
He had a great sense in making videos. He made video in the way students who just search the keyword and don't follow the data structures courses.
@johnhurley89187 жыл бұрын
Thanks to this playlist, I've been reviewing the content of an entire college coarse so far in one day. Pay attention kids. I need to know these concepts for my job interview tomorrow.
@vidzpk51447 жыл бұрын
I know it's late but did you get the job? and did they ask about Data Structures?
@edwarddeitner30066 жыл бұрын
Unbelievable, I am really bad in English but I understand almost everything what you explain in this language, which is pretty strange for me. It is like Einstein said: If you cant explain it easy enough you do not understand it well enough. And you understand it absolutely, so your explanations get great!
@offchan10 жыл бұрын
9:45 You could pass pointer by reference and that would do the job best. void insert(BstNode*& root) is the best way to pass a pointer that you want to changes its actual address. Normally, if you use BstNode*, you are passing pointer by value which means you can change the dereferenced data the pointer is pointing to but you are actually copying the address of the pointer so changing the address of the root inside function won't affect the actual address of root in main. Summary: Pass pointer by reference *& so you don't need to return the changed address to the caller. Passing pointer as a form of pointer like you do also does the job but I think it's too confusing and look superfluous.
@andrethomazjr.18456 жыл бұрын
thanks man... I love you
@aditya65424 жыл бұрын
But wouldn't it require to create a temporary pointer variable because the function is changing the address in root. I know this reply is far apart, 5 years to be precise. I am currently studying this, read your comment wondered about it
@offchan4 жыл бұрын
@@aditya6542 BstNode*& internally works similar to BstNode**. It means that it should consume the same memory. It's just that the syntax is easier to understand. Here's how to use it: BstNode* root = NULL; Insert(root,15); void Insert(BstNode*& root, int data) { if (root == NULL) { root = GetNewNode(data); } } I don't remember the syntax quite well because I haven't written in C++ for long now. But it should be something along that line.
@aditya65424 жыл бұрын
@@offchan Thanks a lot for taking time to explain me. I just tried call by reference method suggested by you and it worked like a charm and the code is now even more readable.
@mohammedjakhirhussain86994 жыл бұрын
@@offchan hey I tried code and works very well but, I have another doubt in this code, if you notice at 16:16 the root is currently pointing to address 500. but what if we want to insert 21 at left side of 20(address 300).please help I am so confused.
@radmehrvosoughi Жыл бұрын
How simple man, thanks god we have India
@rohankumarshah56793 жыл бұрын
the idea of pause and play in recursion is lit, great job!!
@wilacademy8916 Жыл бұрын
Sir, a thousand of thankyou. i love you sir. i'm now preparing for my next term in computer engineering major. i'm so very happy now im study with the best code channel.
@madjayhawk7 жыл бұрын
You are an excellent teacher. Very organized with perfect graphics.
@wondertale122 жыл бұрын
sir awesome i didnot understand the recursion from last 2 months in trees but your video is just miracle for me now i understand how the recursion is work in tree step by step keep it up sir
@justcallmeRISHI11 ай бұрын
Great work Sir, RIP legend, still revising this material.
@muhammadsaadjr92157 ай бұрын
what happen to him?
@manojpandey75174 жыл бұрын
3:08 A self-note; Any object created in dynamic memory/heap can only be accessed through pointers.
@vojvoda-draza4 жыл бұрын
yup
@yashasvibajpai47025 жыл бұрын
Sad to feel that this legend is no more in this world!!!! He will still remain eternal on KZbin and help everyone forever!!!!
@souravsingh7635 жыл бұрын
What??
@yashasvibajpai47025 жыл бұрын
@@souravsingh763 yup bro...He succumbed to his injuries.
@bantyburange8884 жыл бұрын
code in C language #include #include struct bst{ int data; struct bst* left; struct bst* right; }; struct bst* newnode(int data) { struct bst* temp=(struct bst*)malloc(sizeof(struct bst)); temp->data=data; temp->left=NULL; temp->right=NULL; return temp; } struct bst* insert(struct bst* root, int data) { if(root==NULL) { root=newnode(data); } else if(data data) { root->left =insert(root->left,data); } else { root->right=insert(root->right,data); } return root; } int search(struct bst* root,int data) { if(root==NULL) { return 0; } if(root->data=data) { return 1; } else if(data data) { return search(root->left,data); } else { return search(root->right,data); } return data; } int main() { struct bst* root=NULL; root=insert(root,15); root=insert(root,10); root=insert(root,20); root=insert(root,25); root=insert(root,8); root=insert(root,12); int num; printf("Enter a number to search "); scanf("%d",&num); if(search(root,num)==1) { printf("number is found"); } else { printf("number is not found"); } }
@LaTiNScOrPiOn3310 жыл бұрын
I haven't even started this video and I already know it will be amazing due to your previous videos. Thanks for the helpful video!
@VaLeEBP8 жыл бұрын
I really appreciate your work mister, you help me out on many of my programming problems with this videos, thank you so much :) Saludos desde Tijuana B.C. México
@ismughal386 жыл бұрын
we learn it here in minutes because our teachers spent hours to make base for this............very good video
@pallavivanarse16854 жыл бұрын
Very good explanation with good clarity of binary search tree implementation ...I never see such good explanation anywhere ... I really appreciate the person behind this channel .. thanks for providing such nice videos
@AngoraKat118 жыл бұрын
I am glad I stumble upon this video to understand BST. Thank you and keep up the good work!
@jonathanlim226910 жыл бұрын
Great explanation, clear, concise with good linking to previously learnt concepts both as a reinforcer as well as a reminder for those who have lost touch them them
@ShahidNihal6 жыл бұрын
The best video I've found on bst. God, I was stuck at the "pointer-to-pointer" code, but your code with a single pointer made my life easy. Thanks a lot!!
@Saradomin658 жыл бұрын
You're a great teacher tbh. My teacher teaches us only how to do the BST tree and just leaves us to do the codes on our own without using the internet :(
@ChandraShekhar-by3cd5 жыл бұрын
Perfect Video Ever On BST...Such a GlassClear Explanation...Just wanted to add here that instead of using a separate function GetNode we can manage the node creation in struct itself as below : struct Node { int data; Node* left , *rigth; Node(int data){ this->data = data; left = right = NULL; } }; So instead of calling method we need to do simply new Node(data);
@viveksuman96003 жыл бұрын
@10:22 is there a need to write "root=" in all insert calls? Is it fine to write it only in the first insert call so the first root node is created and we have it's address. There's no need to collect return everytime, right?
@AakashYadav-ch9un3 жыл бұрын
I was looking for this exact comment only
@AakashYadav-ch9un3 жыл бұрын
I am thinking the same dude
@harshmehta49563 ай бұрын
10 years later, here we are
@KeLi-r1x4 жыл бұрын
Haven't learned C/C++ before but got it thoroughly. Thanks !!!!!!!
@LetTheWritersWrite6 жыл бұрын
Fantastic lesson. I just want to point out that the addressing can be simplified so much by making a class instead in C++ that will save the pain of referencing addresses and whatnot.
@ArpanPathak9 жыл бұрын
Best teacher in this planet ,, Heyy you can avoid writing struct node every time by using typedef keyword typedef struct BstNode { int data; BstNode *left; BstNode *right; }BST; Now we can simply use BST
@vishalvibes_6 жыл бұрын
it would become confusing for beginners.Thats why he always keeps telling the syntactical sugar thing for ->
@prince59226 жыл бұрын
@@vishalvibes_ sugar thing? you moron.
@qR7pK9sJ2t5 жыл бұрын
@@prince5922 PKMKB
@mumtahinaparvin76684 жыл бұрын
your implementation is better than my University teacher,thank you
@tannerbarcelos68805 жыл бұрын
super good explanation! I was like "what the heack is a pointer reference' but now i get it. the new node being dynamically created is basically a pointer to a node so when calling insert privately, that is the pointer passed in as reference. Makes more sense after thinking about it more.
@suchonprasert58574 жыл бұрын
IN 2020, You still the best teacher bro,ur teach so good
@wojciechkus30102 жыл бұрын
10:23 double pointer part saved me thank you so much
@manushreev657310 ай бұрын
A very clear and precise video lecture. I was searching for this type of video. Thank you
@mashable87598 жыл бұрын
BEST EXPLANATION, Better than all the teachers :)
@dimitardzorlev62838 жыл бұрын
rest in peace. you are the best. You teach great.
@ediccartman72528 жыл бұрын
Thanks a lot for the clear and detailed explanations and let me correct you a little bit. You always say, that in C we can't write, say , , but always . And the point is that you can. You have to write just once - in your definition of struct. And then after closing curly brace just write BSTNode and semicolone at the end. Since then you can write a short form - just BSTNode....blabla
@greenpearl34044 жыл бұрын
there should be a button for salutation. like is not enough to express my gratitude
@abexoxo Жыл бұрын
Thank you sir. You have a very clear step-by-step manner explanation of the BST design. [prayer]
@MisterNorthernCanuck9 жыл бұрын
You make so much more sense then my teacher, many thanks
@rammohanreddymedapati68905 ай бұрын
your explanation and coverage of examples are very good sir,, Thank you
@lituhalder Жыл бұрын
i could not leave this vedio without giving thanks to you
@abkedare7 жыл бұрын
Best data structure tutorial I have ever seen
@asadanees7815 жыл бұрын
Really Great explanation better than my professor. Awesome
@mariyamamreen4392 жыл бұрын
Thnkuu so much sir ❣️😍😍😍method of teaching is brilliant I have seen many videos on topic trees but even any single video not help me like ur video 💞💞💞again thankuu so much GOd bless uh
@JJLiu9204 жыл бұрын
hey i just found you, and this is crazy, but here's my like and my subscribe, because i have a feeling that you are going to save my entire module.
@muhammedimdaad3 жыл бұрын
I felt returning and updating the root nodes after every insertion could be improved. So here is my code of using pointer to pointers. BTW this series is the best content out there. void Tree::insert(Node **rootPtr, int elem) { Node*& root = *rootPtr; //root is an alias to what is pointed by rootPtr, now instead of using *rootPtr, can use root if (root == NULL) { root = getNode(elem); cout
@mawsn4 жыл бұрын
I wish I could like this video more than once, pure gold!
@SuperBhavanishankar9 жыл бұрын
great to have a class on this, that benefited me, which my college can't provide. thanx a lot!
@squirrelgaming40288 жыл бұрын
thx for everything you've made everything much simplier to understand ,you're brilliant sir
@TheGamer720x9 жыл бұрын
The most amazing explanation with proper example+animation. Cheers !! Helped a lot !! Thanx !
@usufarif7 жыл бұрын
Excellent discussion on Data Structures, great detail and crisp content. Thanks. Yusuf Arif
@jeffreydilley33807 жыл бұрын
Where have you been all my life? Why are you not my Professor? Only thing that would have made me love this video even more is if it was implemented as a class.
@manishkanyal40036 жыл бұрын
Video is great and explained every concept clearly. This video is helping ne for preparing for my exams.Thanku codeschool for making such an awesome video tutorials.
@ab3l5884 жыл бұрын
Great explanation- the play and pause symbols really help! Thanks a lot :)
@priyabalakrishnan409311 жыл бұрын
Had been waiting for this implementation video!!! Thank you!!!
@jonathonvandergriff229910 жыл бұрын
Excellent coverage -- this is better than I had back in college.
@RajaSekharpraveen10 жыл бұрын
haw....... what a video remove all confusions in mind in single shot with in 20mins u rocks good video
@1234CDAB8 жыл бұрын
You are such a great presenter. Thank you, keep up the good work
@elvegaalberto9 жыл бұрын
Your tutorials are so easy to understand. Great job :] and Thanks :)
@sarthakvaish25203 жыл бұрын
Best 18 min on trees
@ilanaizelman39938 жыл бұрын
Listen, this is FUCKING PERFECT!!!! thank you very much
@kikakky9 жыл бұрын
It's really helpful for my final exam!! Thanks for your hard work! ;)
@_captainfalc0n9 жыл бұрын
That was soo clearly explained. Thank You.
@nick1f6 жыл бұрын
You make incredibly good tutorials, thank you so much for sharing them with us.
@sahil10533 жыл бұрын
i did it without recursion then saw your such a beautiful code, and mine is 🤦♀️🤦♀️🤦♀️... the you said ... do it without recursion then I was like 😃😃😃
@sankalpsingh77966 жыл бұрын
Thank you humblefool for making learning so easy. May your soul rest in peace!
@eiearunkumark87955 ай бұрын
Thanks for the code its very useful for me and its very clear to understand thanks once again
@ashishkumarg510 жыл бұрын
very lucid, concise and clear... (:thumbs up:) ... Great work
@sidekick3rida4 жыл бұрын
17:27 I think the second "else if" should read "else if(data < root->data) ...". The first "else if" catches the case where "root->data == data". Although, using "
@gauravbansal574610 жыл бұрын
simplicity at its best
@danimanabat57914 жыл бұрын
THANKS A LOT! DSA LIFE SAVER THIS PANDEMIC T.T
@sohambhattacharya7678 жыл бұрын
8:22 C++ was derived from C,and is largely based on it,but there are some legal C constructs which are not legal C++. Conversely, ANSI C inherited several features from C++, including prototypes and const, so neither language is really a subset or superset of the other; the two also define the meaning of some common constructs differently. :)
@vidhansharma66502 жыл бұрын
Lovely lesson..... very clearly explained thankyou
@backdoorguy15 жыл бұрын
Sir, you are doing an excellent job........ kudos to you
@saraswatirathore39333 жыл бұрын
Sir I really appreciate you effort to make us clarified
@bkboggy7 жыл бұрын
Great videos (watched 28 of them thus far), but don't make a mistake of thinking that C++ is a superset of C. There are programs in C that won't run in C++ and there are programs in C++ that won't run in C. They've diverged in '98.
@AliHassan-td7ss11 ай бұрын
End sir g your way of explain are so easy❤
@narayananrenganathan7656 жыл бұрын
Great, you make me understand my basic doubts.
@unsaturated84828 жыл бұрын
you're videos always helped me thank you. very much
@kafychannel Жыл бұрын
thank you so much finally I have got how recursion works) It was really difficult for me to understand how it works my brain merely refused to take it ))
@daoanhtuandao81068 жыл бұрын
your video is very useful . very clearly explained . I hope everybody seeing too .