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 ?? 🤪
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.
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 ?? 🤪
u mean striver?
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
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.
Yes ,you are the one who explain each and every detail bruh! Thank You!!
Bhaiya, agar hum left side mein bhi overflow hone debge tab bhi shayad difference will remain the same.
Very well explained
excellent explanation. I like your "BUT BUT BUT" 😆
Amazing. Nice explanation.
wow.. so nicely explained
nice enriching tutorial
excellent explanation .
Keep comming with daily challenge, i am new to your channel
Dope explanation. btw we're unable to access the drive link for notes could you fix it?
good explanation
Bhai great work... superb
Great Explaination Bhaiya!
Aryan bhai zindabaad
leetcode explanation of this question is shit , but after your video its crystal clear .
thanks
Well explained man :)
kya sirf meri ye dekhke fatti ?