Binary Search Trees | Introduction & Build | C++ Placement Course | Lecture 28.1

Поділитися
Вставка
  • Опубліковано 3 лют 2025

КОМЕНТАРІ • 115

  • @rajdave9862
    @rajdave9862 3 роки тому +4

    Thanks a lot
    Best channel of India for c++ and DSA

  • @aniket._singh
    @aniket._singh 3 роки тому +51

    Thanx aman bhaiya , I know lot of people are not valuing your effort of free education,but please countinue this for students like us who need these free education. ❤️❤️

  • @protonictech4059
    @protonictech4059 3 роки тому +8

    Aman bhaiya very good animation and content. itna achha to college vaale 1.5 lakhs lekar bhi nahi padhaate.🔥🤘

  • @melodytunes2204
    @melodytunes2204 3 роки тому +121

    malik jab itna kharcha ho hi gya h toh lage hath notes bhi de do

    • @ishankbansal9239
      @ishankbansal9239 3 роки тому +12

      Kisi ne bina maange bikh bhi de di tabh bhi katora leke khare rehne ki aadat nhi gyi......
      chutiye saale

    • @sleepypanda7172
      @sleepypanda7172 3 роки тому +5

      rajpal yadav commenting 😆😆😆
      bhai notes me bas code rehta hai to aisa kar video dekh kar ek baar practice to karta he hai na to vo code ek aisi file ke naam se save kar ki vo notes ka kaam karein vs code me.
      bas ho gaya tera kaam.

    • @prayagrajwade8699
      @prayagrajwade8699 3 роки тому

      op bhai 😂😂🤣

    • @_mayank_98
      @_mayank_98 3 роки тому +10

      Bhai jab itna mehnat kar rahe ho to notes bhi bana lo khud 😂

    • @mohammadgouse4992
      @mohammadgouse4992 3 роки тому

      😂

  • @hassanmehedi9903
    @hassanmehedi9903 Рік тому

    omg I've been trying to understand for several days bt this is the first video I understood clearly. thank you so much. This is my first video on your channel, and certainly i'm subscribing. keep up the good work. thank you

  • @deepanshuyadav2918
    @deepanshuyadav2918 3 роки тому +1

    awesome channel for C++

  • @bkee2
    @bkee2 3 роки тому +8

    awesome content, thanks every member of the team...💕😍👍💻😊🔥

  • @syedwaleed9694
    @syedwaleed9694 3 роки тому +2

    The method of teaching is great. .really impressed

  • @manishisaxena2712
    @manishisaxena2712 3 роки тому

    Bhut hi acha course hai ati uttam 2,3 baar saari videos dekhne ke baad sbb bhit asaan lagra hai

  • @KeyserTheRedBeard
    @KeyserTheRedBeard 2 роки тому +1

    amazing video Apna College. I shattered the thumbs up on your video. Maintain up the wonderful work.

  • @avirajarora1476
    @avirajarora1476 3 роки тому +2

    Her explanation is 🔥 lit.

  • @muhammadumar1273
    @muhammadumar1273 3 роки тому +2

    Thank you ma'am I pass my Data structure Paper because of Your Tutorials

  • @PinjuVedant
    @PinjuVedant 2 роки тому

    finally i understand coding thank youuuuuuuuuuuuuuu

  • @sleepypanda7172
    @sleepypanda7172 3 роки тому

    animation+explanation!!! best content
    Thanks a lot shraddha di & A.D

  • @niladripaul7032
    @niladripaul7032 3 роки тому +2

    Please keep doing this. These videos are very helpful.

  • @abhaybanerjee1074
    @abhaybanerjee1074 3 роки тому +1

    Best course ever

  • @varnitgoel7660
    @varnitgoel7660 3 роки тому +11

    Bhaiya plz provide the notes.... ????
    and really amazing content...

  • @kushagra6148
    @kushagra6148 3 роки тому +2

    Thank u for such amazing videos ,hope this helps for my placements

  • @muhammadzia1650
    @muhammadzia1650 2 роки тому

    Miss Good Leacture Congratulation❣❣💯💯❣❣

  • @SurajMapariPrivate
    @SurajMapariPrivate 3 роки тому +11

    This Man Is Going Crazy Keep It Up 😆 Thanks You So Much For All The Lectures❤️🙏

  • @abhisheksingh767
    @abhisheksingh767 3 роки тому +4

    And guys if u make notes by yourself u will learn a lot, remember when u were preparing for any exams you were able to understand easily with you notes than others

  • @meme_eternity
    @meme_eternity 3 роки тому

    Aag lada di

  • @apoorvo12
    @apoorvo12 3 роки тому +62

    Who is here after watching all previous Lectures of C++
    👇

  • @vidhiagrawal3
    @vidhiagrawal3 3 роки тому

    Thanks a lot team Apna College for such quality content

  • @kgaurav7097
    @kgaurav7097 3 роки тому +1

    We don't need to take Node to be data type of buildbst,we can do it by using void also ,just we need to pass our root by reference.

  • @saint8298
    @saint8298 2 роки тому +2

    Here we are kind of rebuilding the whole path from root to the new node we want to insert, instead we can do it by returning nothing

  • @Think_AboutData
    @Think_AboutData Рік тому

    thanks didi.

  • @mohdkaif6227
    @mohdkaif6227 3 роки тому

    Full Samaj aa gya

  • @hustlewithVaibhav
    @hustlewithVaibhav 3 роки тому +1

    Thank you 🙏🙏

  • @shivamverma5154
    @shivamverma5154 3 роки тому

    Really great teaching

  • @memeshub2935
    @memeshub2935 Рік тому

    thankew soo much

  • @akshath711
    @akshath711 2 роки тому

  • @sojunkchandra
    @sojunkchandra Рік тому

    Thank you

  • @errorcom123
    @errorcom123 2 роки тому

    Treee ki properties pe ek video bna do didi 🙏🙏🙏🙏🙏🙏advantage and disadvantage

  • @alokik
    @alokik 3 роки тому

    Thankyou mm.

  • @aishikbasu5230
    @aishikbasu5230 2 роки тому +3

    My code is not running.
    I have a doubt.
    When calling the insertBST function for the values other than the first one,the function returns a node pointer value but we do not store it in any variable. Will this not be incorrect?

    • @uxxrhiiikgfdsdvhj
      @uxxrhiiikgfdsdvhj Рік тому

      thats actually because the insertBST function has inside it commands to do changes in the root node, so calling them makes changes in the root node itself. so we just have to assign the initial node to get the entire BST

  • @divyaporwal589
    @divyaporwal589 3 роки тому +1

    I am not able to understand how the 7 value again go on the right of root instead of below right of 1 as there is no condition of it

    • @amansinghbisht2549
      @amansinghbisht2549 3 роки тому

      Simply bcz 7 is greater than 5, hence else case will execute and 7 goes to right of 5

  • @sniperexpert3049
    @sniperexpert3049 10 місяців тому +1

    where are the notes

  • @vishal_kumarmaurya
    @vishal_kumarmaurya 3 роки тому

    Nice

  • @jalajmansingka430
    @jalajmansingka430 3 роки тому

    waiting

  • @iemmadhav
    @iemmadhav 3 роки тому +1

    Last 30 days strategy daldo bhaiya

  • @hakuna_matata2108
    @hakuna_matata2108 3 роки тому

    both the didi 's are explaning nicely , bhiaya is sometimes a bit hasty . just a review

  • @abhijeettapase7625
    @abhijeettapase7625 3 роки тому

    insert vale function me ending me return root; likhna jaruri hai kya??

  • @zainulkhan8381
    @zainulkhan8381 3 роки тому +1

    why are we returning the root in insertBst function and what is Node *insertBst can some one help me please

    • @adityabhandari6688
      @adityabhandari6688 3 роки тому

      yes I have the same doubt. Can someone help?

    • @zainulkhan8381
      @zainulkhan8381 3 роки тому

      @@adityabhandari6688 bro I skipped this topic for a while pata chale to please batana koi genuinely nahi dekh raha DS ki videos

    • @adityabhandari6688
      @adityabhandari6688 3 роки тому

      @@zainulkhan8381 bro, i think the return root is useful for getting root's position in main() function. Just see the first two lines in main function i.e., root = insertBST(root, 5)

  • @himanshuranjan5907
    @himanshuranjan5907 3 роки тому +1

    Is there a problem if I create a void insert function

    • @himanshuranjan5907
      @himanshuranjan5907 3 роки тому

      @ApnaCollege

    • @gauravupreti9340
      @gauravupreti9340 3 роки тому

      No
      void buildTree(node *curr, int v)
      {
      if (v > curr->data)
      {
      if (curr->right == NULL)
      curr->right = new node(v);
      else
      buildTree(curr->right, v);
      }
      else
      {
      if (curr->left == NULL)
      curr->left = new node(v);
      else
      buildTree(curr->left, v);
      }
      }

  • @amberstylo
    @amberstylo 2 роки тому

    Mam ye tree sting type data ya kisi or data type kalye ksy istmal krn gy?

  • @kshitijmehta5664
    @kshitijmehta5664 3 роки тому +1

    Aman bhaiya animation pr aur videos kb aayengi ???

  • @rajatgahlot6767
    @rajatgahlot6767 3 роки тому +1

    what if the value of the val is equal to root->data.

  • @mohitchoyal6355
    @mohitchoyal6355 3 роки тому

    which extention did you use for testcases run ??

  • @mukeshmahajan1586
    @mukeshmahajan1586 3 роки тому +1

    HEy guys , how about we create a telegram group for discussion??

  • @pulkitgoyal1344
    @pulkitgoyal1344 2 роки тому

    why we return the value in null case instead of replacing null value with new node(val) ......somebody help?

  • @girishkumar5764
    @girishkumar5764 3 роки тому

    notes provide kerwa do sir
    ASAP

  • @shreyankshrestha9274
    @shreyankshrestha9274 3 роки тому

    well explained

  • @ishanikasingh9321
    @ishanikasingh9321 3 роки тому +1

    di in the else condition it should be
    else if(val>root->data)
    root->right=insertBST(root->right,val);
    Otherwise, it will insert the same value, and there are no duplicates in BST!

    • @ankitsaaho1389
      @ankitsaaho1389 3 роки тому

      yeah

    • @zainulkhan8381
      @zainulkhan8381 3 роки тому +1

      First two conditions are already mentioned very clearly so ab bas greater val ka hi case bacha tha thats why her code is working fine and your code is correct too

    • @himanshuranjan5907
      @himanshuranjan5907 3 роки тому

      Is there a problem if i use a void function instead of node* insert

    • @himanshuranjan5907
      @himanshuranjan5907 3 роки тому

      But the code is running

    • @zainulkhan8381
      @zainulkhan8381 3 роки тому

      @@himanshuranjan5907 bro can u share the code please this pointer to function is really confusing me

  • @abhisheksingh767
    @abhisheksingh767 3 роки тому

    Not so popular, idk why, but content quality is too high. I took self paced dsa course of gfg, i was not able to understand lca but i understood from here. Its free and more important quality is far better than those costly courses

  • @sidharthpriyadarshi6569
    @sidharthpriyadarshi6569 3 роки тому

    what if i didn't write return root in last line of insertBST()

    • @zainulkhan8381
      @zainulkhan8381 3 роки тому +1

      I tried doing the same bro o/p same aa raha hai but in addition this is also coming
      warning: control reaches end of non-void function [-Wreturn-type]
      }

    • @momozkichutney
      @momozkichutney 3 роки тому +3

      Bro it have a return data type of node* , so you have to return some node pointer.....
      It is not a void function, so you can't escape without returning something!

  • @tayyabali3604
    @tayyabali3604 2 роки тому

    inorder ka code mia root ka right ka data kasa print ho raha ha anyone explain plz

  • @kratos_gaming9765
    @kratos_gaming9765 2 роки тому

    notes dedo sir

  • @navneetsingh6210
    @navneetsingh6210 3 роки тому

    can somebody tell where can i get the notes of this lecture..

  • @pranjaladhav9600
    @pranjaladhav9600 3 роки тому +1

    Why it's giving me error

  • @IndianHomer
    @IndianHomer 2 роки тому

    BEST be like ye ped maine kab lagaya 🤔🤔.

  • @SanjaySingh-qf4tk
    @SanjaySingh-qf4tk 3 роки тому

    this code wont work for repeted no

    • @avirajarora1476
      @avirajarora1476 3 роки тому +2

      BST is not for repeated nos

    • @momozkichutney
      @momozkichutney 3 роки тому

      Bst have all unique values...dude that's the fundamental of BST

  • @Tusharpixals
    @Tusharpixals 3 роки тому +1

    I am sad to see that he is doing such hard work and after 3 hours of premier of video it has only 800 views...

    • @its_neel_ok
      @its_neel_ok 3 роки тому

      cause it's not an entertainment video u can't binge watch them ......people who want to learn will come eventually....like me .....i reached this lecture today!

  • @aryanjain7645
    @aryanjain7645 3 роки тому +1

    JAB BSTINSERT KO CALL KRENGE TAB TO WO KUCH RETURN KRTA H NA,TO SIDHA
    BSTINSERT KAISE CALL KR SAKTE H?

  • @muhammadahmed3772
    @muhammadahmed3772 2 роки тому

    sirf ratta rataya aakr explain kr diya, koi samjh nhi ae

  • @martiananomaly
    @martiananomaly 2 роки тому

    boba fett

  • @kabeersinghthakur8507
    @kabeersinghthakur8507 2 місяці тому

    I didn't get anything bad explanation😢

  • @sujatharampelli1468
    @sujatharampelli1468 3 роки тому +4

    rip webdevelopment course

  • @purifying_ummah
    @purifying_ummah Рік тому

    Why are you using music😑 we are here to learn not to enjoy music😢

  • @ritwickrana3255
    @ritwickrana3255 3 роки тому

    if anyoune is from 1st year college ,kindly comment so that we can help each other in progress;

  • @gautm7777
    @gautm7777 11 місяців тому

    Thank you mam

  • @sujatharampelli1468
    @sujatharampelli1468 3 роки тому +2

    rip webdevelopment course

  • @sujatharampelli1468
    @sujatharampelli1468 3 роки тому +3

    rip webdevelopment course

    • @momozkichutney
      @momozkichutney 3 роки тому

      These people don't reply on Yt comments..

    • @momozkichutney
      @momozkichutney 3 роки тому

      I guess they don't even see them😢

  • @sujatharampelli1468
    @sujatharampelli1468 3 роки тому +2

    rip webdevelopment course

  • @sujatharampelli1468
    @sujatharampelli1468 3 роки тому +4

    rip webdevelopment course