Height of Binary Tree | Height of a Binary Tree | Binary Tree Data Structure | DSA-One Course #57

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

КОМЕНТАРІ • 76

  • @gwalaniarun
    @gwalaniarun 3 роки тому +27

    You are a blessing to us. Never stop this series, please.

  • @aswithasai4015
    @aswithasai4015 2 роки тому +9

    height is -1 for empty node i think it should be written return -1 when root is NULL.

  • @Anashwar-p3w
    @Anashwar-p3w 2 місяці тому

    by far the best explanation of this problem in whole youtube.

  • @pragyanpandey662
    @pragyanpandey662 2 роки тому +10

    It's really commendable that after getting a well paid job at one of the dream company, Anuj Bhaiya has still given his efforts to continue working on this series and make other videos to help u. It's very easy to get those money and enjoy life, but to work this hard even after achieving great things, it is commendable.

  • @630_anishabirla8
    @630_anishabirla8 2 роки тому

    Anuj bhaiya u r love ,u have made many people's life,u r so self-less ,u r posting this world class stuff to us for free,u r not only hardworking u r selfless,u r my hero,u r such a beautiful soul who give students quality teaching for freee and here are in my college who are asking for money for everything whether its coding or internship .U r real hero !!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @abirbanerjee839
    @abirbanerjee839 7 місяців тому

    THIS IS THE BEST VIDEO ON THE HEIGHT OF BINARY TREE

  • @TheMdaliazhar
    @TheMdaliazhar 5 місяців тому

    I like your visual explanation better than any other youtuber. Please make more leetcode problem videos.

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

    bhiya litrally i am thankful to u for this playlist yaar! This is sooooo dammm good Thankyou for so much hardwork!The most humble youtuber i have ever seen in my life!

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

    Made soo easy to understand recursive call in this height.

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

    excellent video bhaiya, call stack understood

  • @ArjunGupta-dj7ot
    @ArjunGupta-dj7ot 3 роки тому +6

    Thanks for being consistent, Really like your videos

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

    Nice getting boost day by day by seeing ur videos

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

    Recursion me phas gya tha litreally, Thanks @Anuj Bhaiys

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

    You tube er best job h

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

    A very helpful video for understanding this concept. Thank you !!

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

    thank u for the video. recursive callstack explanation was very good.

  • @hannanhub1717
    @hannanhub1717 3 місяці тому

    very simple explanation

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

    Thank you and continue this series bhaiya
    God bless you

  • @nithinthota96
    @nithinthota96 10 днів тому

    simply superb!

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

    Bhaiya aapki video mujhe jaldi samaj aati hai

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

    Thank you sir for your hardwork!!

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

    it was very very good explanation

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

    Thanks bhaiya

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

    Thank you

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

    Thanks!! very important concept.....

  • @THENIKSHOW-tp5hy
    @THENIKSHOW-tp5hy Місяць тому

    Thankyou ❤

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

    great work bhai keep it up 🤩🤩

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

    got it bhaiya also practiced it on gfg

  • @softmedun6794
    @softmedun6794 11 місяців тому +1

    👉But sir single node ke lie to height 1 aa jayega jo ki galat hai , height 0 ana chahiye
    Isme ek or condition hona chahiye.......
    if(root->left ==nullptr && root->right==nullptr ){
    return 0;
    }

  • @coding9.99
    @coding9.99 Рік тому +1

    after i listning recursion k deep me nhi jana hota hai upar upar se kr ke nikl jana hota hai >>>>> 3

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

    wonderful explanation

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

    Video is very very helpful !!!!!!!!!!!!!!!!
    Thanku bhaiya

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

    Thank you
    Nice
    ❣❣

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

    thanks

  • @GahanaD
    @GahanaD Місяць тому

    Awesome☺☺☺🤯🤯

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

    thank you bhaiya 🙏❤️

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

    Sir as a fresher I can apply in which positions in companies, like can I apply for jobs for freshers as well as in support Engineer role.
    Please 🙏 answer me.
    Because very few jobs are coming for freshers so can I apply for those positions in which it's asking for 1/2 years of experience if I have 1/2 good internships.

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

    BHAIYA KYA PADATE HO YRR TUM MAJE AA GYE

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

    1st Comment ❤️❤️. Bhaiya muje Refferal dilwa doo pls. Meine 500+ DSA q. Solve kiye h. Help me🙏🙏

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

    very greatful

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

    good one

  • @NitishShuklaOfficial
    @NitishShuklaOfficial 5 місяців тому

    best

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

    #DSAONE

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

    Iteratiive bi bta dijiye

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

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

    Amazing❤

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

    Hi Anuj bhaiya, I guess the height of tree should be 3 not 4 because the height is given by the sum no. of edges in the binary tree. Please correct me if I am wrong.

  • @akritirawat135
    @akritirawat135 10 місяців тому

    Height should be 3 no of edges from the root node...

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

    Excuse me sir, what will be the height of the binary tree "if the root of the tree is 0" is mentioned?

    • @Gamer-uz7dl
      @Gamer-uz7dl 2 роки тому

      Just change return 0 to return -1

  • @obaidurrahman7216
    @obaidurrahman7216 Рік тому +1

    This code returns height is 3. Which is correct?

  • @basavarajhasarmani6231
    @basavarajhasarmani6231 Рік тому +1

    Height and depth of only one node in tree is zero(0) not (1)

    • @SaurabhPatel-w9b
      @SaurabhPatel-w9b 5 місяців тому

      Both are correct as per different books

    • @emanniaz7980
      @emanniaz7980 5 місяців тому

      Because he started indexing from 1 not 0 in most languages we start from 0 but in general we can use either 1 or 0

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

    Hum first!!

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

    Sir I'm BCA graduate and reactJS ki job mil rahi hi 5 hajar salary hi should I do job Or MCA?

    • @10daysAgo
      @10daysAgo 2 роки тому +2

      Bhai sirf 5 hazar ? Itna to tumhe ese hi koi pathology lab ke accounts department mein job se mil jayega . Infact atleast 12-15k to milenge hi . Lekin agar karna hi hai to experience ke liye karo 👍

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

    very helpful

  • @RN-jo8zt
    @RN-jo8zt 8 місяців тому

    how come there are two defination for height of tree?

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

    First ❤️❤️❤️

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

    👌👌🙏

  • @awesome-kl9ci
    @awesome-kl9ci 3 роки тому

    Bhaiya aage ki video kB nikalo gay

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

    Bhai iss playlist ko jaldi khatam kro, waiting for Graph videos

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

    hi

  • @sumitkumar-rj6ht
    @sumitkumar-rj6ht 6 місяців тому

    Start 0 to n ?

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

    height 3 hai

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

    Bhai

  • @DhruvSharma-wb4li
    @DhruvSharma-wb4li 2 роки тому

    iski height 3nhi hogi kya?

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

    yo

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

    amazing explanation

  • @Akash-dd6ev
    @Akash-dd6ev Рік тому

    Thank you bhaiyya

  • @adilhassan2093
    @adilhassan2093 Рік тому +1

    Thank you bhaiya

  • @sujitojha6071
    @sujitojha6071 7 місяців тому +1

    thank you so much guru