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

  Рет қаралды 3,496

Aryan Mittal

Aryan Mittal

Күн бұрын

In this video, I'll talk about how to solve - 662. Maximum Width of Binary Tree
Problem Link: leetcode.com/p...
C++/Java/Python Code & Notes: drive.google.c...
Maximum Width of Binary Tree || Why Long to Int ? || Binary Tree || BFS || C++/Java/Python
Let's Connect:
📝Linkedin: / aryan-mittal-0077
📸 Instagram: / aryan_mittal_007
📱Telegram : t.me/aryan_mit...
🤖 Github: github.com/ary...
Resources you can try:
Learn Coding: • Complete RoadMap for C...
🎥Channel Playlists
Dynamic Programming: • Complete Dynamic Progr...
Bit Manipulation: • Complete BIT MANIPULAT...
Mathematics for DSA: • Complete Mathematics f...
Leetcode Top Interview Questions: • FAANG & Leetcode Inter...
Codeforces Problem B Ladder: • Complete PROBLEM B LAD...
Codeforces Problem C Ladder: • Codeforces PROBLEM C L...
Codeforces Problem D Ladder: • Complete PROBLEM D LAD...
About Channel:
We teach about how you can grow in life & educate about programming in Fun & Intuitional way.
About Me:
I am Aryan Mittal - a Software Engineer, Speaker, Creator & Educator. During my free time, I create programming education content on this channel & also how to use that to grow :)
✨ Timelines✨
✨ Hashtags ✨
#programming #Interviews #leetcode #faang #maang #datastructures #algorithms

Пікірлер: 21
@ARYANMITTAL
@ARYANMITTAL Жыл бұрын
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 Жыл бұрын
u mean striver?
@gauravlokwani8623
@gauravlokwani8623 Жыл бұрын
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 Жыл бұрын
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!!
@HaiNguyen-po2vw
@HaiNguyen-po2vw 5 ай бұрын
excellent explanation. I like your "BUT BUT BUT" 😆
@RishabhJain-el7hh
@RishabhJain-el7hh Жыл бұрын
Bhaiya, agar hum left side mein bhi overflow hone debge tab bhi shayad difference will remain the same. Very well explained
@janaSdj
@janaSdj 6 ай бұрын
Amazing. Nice explanation.
@pain9617
@pain9617 Жыл бұрын
wow.. so nicely explained
@Surya-qc4yi
@Surya-qc4yi 2 ай бұрын
Dope explanation. btw we're unable to access the drive link for notes could you fix it?
@adarshtiwari6742
@adarshtiwari6742 Жыл бұрын
nice enriching tutorial
@tejuschaturvedi6234
@tejuschaturvedi6234 Жыл бұрын
excellent explanation .
@DineshKumar-pm6iu
@DineshKumar-pm6iu Жыл бұрын
Keep comming with daily challenge, i am new to your channel
@ssabarish9962
@ssabarish9962 Жыл бұрын
Bhai great work... superb
@VijayTamada
@VijayTamada Жыл бұрын
Great Explaination Bhaiya!
@poojithkumar2283
@poojithkumar2283 Жыл бұрын
good explanation
@IconOfSeas
@IconOfSeas Жыл бұрын
leetcode explanation of this question is shit , but after your video its crystal clear .
@harshal8781
@harshal8781 Жыл бұрын
thanks
@ayushdahiya9190
@ayushdahiya9190 Жыл бұрын
kya sirf meri ye dekhke fatti ?
@DineshKumar-pm6iu
@DineshKumar-pm6iu Жыл бұрын
Well explained man :)
@anonnona6940
@anonnona6940 Жыл бұрын
Aryan bhai zindabaad
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 302 М.
Dad gives best memory keeper
01:00
Justin Flom
Рет қаралды 23 МЛН
So Cute 🥰
00:17
dednahype
Рет қаралды 49 МЛН
ПРИКОЛЫ НАД БРАТОМ #shorts
00:23
Паша Осадчий
Рет қаралды 5 МЛН
I Took a LUNCHBAR OFF A Poster 🤯 #shorts
00:17
Wian
Рет қаралды 17 МЛН
Demystifying the C++ Compiler!
12:52
Low Level Game Dev
Рет қаралды 10 М.
OpenAI o1 is Better Than I Expected
17:11
NeetCodeIO
Рет қаралды 81 М.
How to Check if a User Exists Among Billions! - 4 MUST Know Strategies
12:44
The LeetCode Fallacy
6:08
NeetCode
Рет қаралды 506 М.
How to Solve ANY LeetCode Problem (Step-by-Step)
12:37
Codebagel
Рет қаралды 212 М.
Medium Google Coding Interview With Ben Awad
51:27
Clément Mihailescu
Рет қаралды 1,3 МЛН
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 508 М.
Most Common Concepts for Coding Interviews
6:08
NeetCode
Рет қаралды 313 М.
8 patterns to solve 80% Leetcode problems
7:30
Sahil & Sarra
Рет қаралды 357 М.
Dad gives best memory keeper
01:00
Justin Flom
Рет қаралды 23 МЛН