Maximum Width of Binary Tree || Why Long to Int ? || Binary Tree || BFS || C++/Java/Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ธ.ค. 2024

ความคิดเห็น • 21

  • @ARYANMITTAL
    @ARYANMITTAL  ปีที่แล้ว +3

    C++/Java/Python Code & Notes: drive.google.com/file/d/1NRqHDly6ouN4F9XD8XthBS425F4PK02s/view?usp=share_link
    Even the most viewed video on this problem has not explained the edge case of another overflow, which we handle by Long long, This was an interesting Problem, what do you guys think ?? 🤪

    • @pain9617
      @pain9617 ปีที่แล้ว +1

      u mean striver?

  • @gauravlokwani8623
    @gauravlokwani8623 ปีที่แล้ว +2

    Integer Overflow waali baat ne dil le liya bhaiya, I got confused ki even after doing 2ll we are storing it in INT, but well explained. Thank you

  • @VivekYadav-ds8oz
    @VivekYadav-ds8oz ปีที่แล้ว +2

    I've done something similar, but instead by modding. Relying on integer overflows is interesting but troublesome. You're expecting the integer to wrap around, rather than triggering some kind of trap or triggering some exception. This can be troublesome in higher-level languages that consider overflowing a bug/exception. Even in C++, it depends on the judge if they have enabled runtime checks on submitted code or not, in which some compilers like LLVM do support "panicking" on overflowing.
    In fact, if you are comfortable in relying on integer overflows, then you don't need to do any re-assigning in the first place, overflowing on both sides will make the difference same regardless.
    Great video though! Really well explained. Subscribed.

  • @mohanseditz
    @mohanseditz ปีที่แล้ว

    Yes ,you are the one who explain each and every detail bruh! Thank You!!

  • @RishabhJain-el7hh
    @RishabhJain-el7hh ปีที่แล้ว +2

    Bhaiya, agar hum left side mein bhi overflow hone debge tab bhi shayad difference will remain the same.
    Very well explained

  • @HaiNguyen-po2vw
    @HaiNguyen-po2vw 8 หลายเดือนก่อน

    excellent explanation. I like your "BUT BUT BUT" 😆

  • @janaSdj
    @janaSdj 9 หลายเดือนก่อน

    Amazing. Nice explanation.

  • @pain9617
    @pain9617 ปีที่แล้ว

    wow.. so nicely explained

  • @adarshtiwari6742
    @adarshtiwari6742 ปีที่แล้ว

    nice enriching tutorial

  • @tejuschaturvedi6234
    @tejuschaturvedi6234 ปีที่แล้ว

    excellent explanation .

  • @DineshKumar-pm6iu
    @DineshKumar-pm6iu ปีที่แล้ว

    Keep comming with daily challenge, i am new to your channel

  • @Surya-qc4yi
    @Surya-qc4yi 5 หลายเดือนก่อน

    Dope explanation. btw we're unable to access the drive link for notes could you fix it?

  • @poojithkumar2283
    @poojithkumar2283 ปีที่แล้ว

    good explanation

  • @ssabarish9962
    @ssabarish9962 ปีที่แล้ว

    Bhai great work... superb

  • @VijayTamada
    @VijayTamada ปีที่แล้ว

    Great Explaination Bhaiya!

  • @anonnona6940
    @anonnona6940 ปีที่แล้ว

    Aryan bhai zindabaad

  • @IconOfSeas
    @IconOfSeas ปีที่แล้ว

    leetcode explanation of this question is shit , but after your video its crystal clear .

  • @DineshKumar-pm6iu
    @DineshKumar-pm6iu ปีที่แล้ว

    Well explained man :)

  • @ayushdahiya9190
    @ayushdahiya9190 ปีที่แล้ว +2

    kya sirf meri ye dekhke fatti ?