Find the Floor & Ceil Value in a BST | Ceil in BST | Floor in BST | Binary search tree | DSAOne #70

Поділитися
Вставка
  • Опубліковано 28 лис 2024

КОМЕНТАРІ • 32

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

    I loved the way you explained the code and dry runned the code ... It is easy for us to understand the code . Such a wonderfull DSA course on UA-cam.

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

    static int floor(Node root,int k){
    Node curr=root;
    int ans=Integer.MAX_VALUE;
    while(curr!=null){
    if(curr.data >= k) ans=Math.min(ans,curr.data);
    // if(temp.data == k) return temp.data;
    if(curr.data > k){
    if(curr.left!=null)
    curr=curr.left;
    else
    return ans;
    }
    else{
    if(curr.right!=null)
    curr=curr.right;
    else
    return ans;
    }
    }
    return ans;
    }

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

    Thanks bhayia a learnt allot of from you

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

    I appreciate your effort put in to teach us difficult topic in easy way

  • @Rohan-ww4cw
    @Rohan-ww4cw 2 роки тому +1

    Thank you so much bhaiya for this video 😘

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

    very nice process providing video .

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

    At 1:48 why floor of 4 is (+Infinity)?

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

    Hello Anuj… thanks for the wonderful series… Will you please start similar series on Graphs

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

    Bhaiya can u please tell me how many topics are still left?

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

    Bhaiya ye coding to theek h but ye jo interviews me dbms os etc. etc. Puchte h can you make one video of giving insights on how deep we need to study that when and from where we have to study? What subjects are asked??

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

    Thanks bhai for such an amazing content...Also when will you start Dynamic Programming Questions?

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

    Nice video ,🙌👍, just a request i am mentioning again, can u please a make video on dfs or minimum jumps to reach at the end of array, because that code requires how use a loop inside a recursion code(some what like backtracking)

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

    same as Inorder successor and predecssor

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

    Anuj bhaiya kya DP important he DS ke liye

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

    Bhaiya i want to start you to teach us c++ language from zero please it's a humble request

  • @abidkhan.10
    @abidkhan.10 2 роки тому

    Hello sir is course ka name kiya hai

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

    Bhaiya plss videos thora jaldi dalia , placements start hone wala hi hai hamara....

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

    Hello sir please send me your opinion about acciojob?? Should I join it or not??

  • @abhay.1926
    @abhay.1926 2 роки тому

    Flutter dart roadmap

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

    Anuj Bhaiya I need your help personally.

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

    bhaiya please make video on next permutation problem (leetcode31)

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

    bhaiya please new playlist add kariyea , placement question solved in laptop, explain on board which question in your sheet .
    please, please please, please please, please please, please please, please please, please please, please

  • @sandeepkumar-of4wy
    @sandeepkumar-of4wy 2 роки тому

    Anuj bhaiya apka jo Java ka video the Apni Kakshya channel pe wo kyu remove ho gye suddenly ? please wo cource dubara apki khud ki channel me upload kijiye atleast ya fir fir se java ka video banayine jisme basic se advance ka topic cover ho just like Apni Kashya. Please reply jarur kijiye. It was great content. why removed ? 😭

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

    Second 😂❤️

  • @abidkhan.10
    @abidkhan.10 2 роки тому

    C++ and java kis par based hai

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

      Hi, this is primarily based on Java. but you can continue in C++ as well. The Course is called The DSA One Course.

    • @abidkhan.10
      @abidkhan.10 2 роки тому

      @@AnujBhaiya thanku bhai

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

    App code ka

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

    Melaye

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

    First