Add Binary (LeetCode) | Adding Binary Numbers as Strings Explained
Vložit
- čas přidán 30. 06. 2024
- Link to the Code: gist.github.com/JyotinderSing...
Link to the Problem: leetcode.com/problems/add-bin...
Link to my GitHub: github.com/JyotinderSingh
Link to my Website: jyotindersingh.com/
Timestamps:
00:00 - Problem Introduction
00:54 - Quick Intro to Number Systems
03:59 - Algorithm Explanation
05:23 - Coding Walkthrough
_______________________________________
Some great channels to learn more:
Tushar Roy: / tusharroy2525
Errichto: / @errichto
Nick White: / @nickwhite
Kevin Naughton Jr: / @kevinnaughtonjr - Věda a technologie
This is one of the best videos for this problem's solution. I loved the explanation.
Glad to hear that! Please consider subscribing for more content!
Excellent explanation man. Liked and subbed
This is indeed the clearest explanation! Thank you!
Easiest Explanation found!! Thanks
Amazing video. Keep going.
amazing explanation!!!
Excellent explanation.
I didn't study CS on campus, thanks for helping me understand how binary works.
I'm glad you found this useful! Be sure to subscribe for more content!
Very nice explanation brother
Literally best video, I checked many but liked your video explanation "the best".
Thank you so much for kind words!
Thanks sir a lot for helping!!!
Next week is my Facebook interview (the last one and I'm kinda nervous), you're helping me a lot. Thank you.
I'm so glad to hear that! I'll definitely try to squeeze in a couple more videos onto the channel by then!
Best of luck!
how did your interview go Laìs
Very useful....'
Well explained!
Thanks a lot! Be sure to subscribe for more videos!
Hi, could you please tell why have you took i and j as a.size()-1 and b.size()-1 respectively, shouldn't their values be a.size() and b.size() . As indexing if string starts from 1 and not 0 . Could you please clear this?
i and j refer to the total number of traversable elements in each of the strings. As you see we start inside the while loop from the rightmost index of each of the strings. Had the value of i or j been a.size() and b.size() respectively - it would have led to an index out of bounds exception, since the last element of the string is at position (size - 1)
why "i--" and "j--" are decremented inside the array 'a' and 'b' and
Not just before the ending of the while loop??
we cannot use it as a[i] & b[j] it is not an array
Bro can u help me out on a lil code its for school project please just hint bro
ascii 1 is represent as 49 not 31
0x31 in hex is ascii 1