Add Two Numbers Without The "+" Sign (Bit Shifting Basics)

  Рет қаралды 125,417

Back To Back SWE

Back To Back SWE

Күн бұрын

Пікірлер: 503
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Table of Contents The Problem Introduction 0:00 - 0:51 A Way To Think About Number Bases 0:51 - 3:56 Back To The Problem At Hand 3:56 - 4:16 Let's Add Some Numbers (Decimal, Base 10) 4:16 - 4:59 Let's Add Some Numbers (Binary, Base 2) 4:59 - 7:40 Bit Shifting Operators: The 'AND' -> '&' 7:40 - 9:41 Bit Shifting Operators: The 'XOR' -> '^' 9:41 - 11:36 Bit Shifting Operators: The 'Left Shift' -> '
@danavram8437
@danavram8437 4 жыл бұрын
What do you mean? It also works on negative numbers (great explanation of the whole process btw :) ). I used this algorithm on leetcode in C++ (and it has to work with negative numbers as well). The only catch is that I had to convert the carry to unsigned when doing the left bitshift (which wraps the bits around with 1111....11 (32 bits)) int getSum(int a, int b) { while(b) { int carry = a & b; // get all carry bits (all 1&1s) a = a^b; // sum of disjoint bits (everything except what needs to be carried) // shift carry by one, as this is how a regular sum operation works // the carry is moved to the next position b = (unsigned)carry
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
yeah
@arunprakash1101
@arunprakash1101 4 жыл бұрын
Hey !! This explanation is excellent! But I can't see the code for this problem in the description! Is it moved?
@willinton06
@willinton06 4 жыл бұрын
Arun Prakash same here
@anjalibelani5101
@anjalibelani5101 4 жыл бұрын
Thank you for these videos. However, I dont see the code in the description in any of your videos. Am I missing something?
@minhazulislam4682
@minhazulislam4682 3 жыл бұрын
dude, you need to come back and teach us. the world needs more people like you, blackpenredpen, the organic chemistry teacher, 3blue1brown, nick white, tech with tim, jenny it and many more.
@albertjtyeh53
@albertjtyeh53 3 жыл бұрын
is he working at FAANG now?
@MrACrazyHobo
@MrACrazyHobo 3 жыл бұрын
@@albertjtyeh53 Back To Back SWE is at twitter!
@dubey_ji
@dubey_ji 2 жыл бұрын
Corey Schafer and Sentdex are great too
@rtothec1234
@rtothec1234 Жыл бұрын
I took compsci and learned this but could never explain to my friend who couldn’t grasp it. She struggled the whole time. This is such a great explanation and you are an excellent teacher.
@null5245
@null5245 5 жыл бұрын
u r a good teacher bro! Actually i came here because of your comment in leetcode lol :)
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
nice
@angelanayiga4060
@angelanayiga4060 5 жыл бұрын
@@BackToBackSWE I do agree you should make comments on all leet code questions you've solved! That's how I landed on B2B SWE!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
@@angelanayiga4060 hey
@harshag5423
@harshag5423 4 жыл бұрын
@@angelanayiga4060 Now because of your comment I landed on B2B which I didn't even know.
@angelamukisa4433
@angelamukisa4433 4 жыл бұрын
Harsha G I’m really glad you landed on it and I hope it helps you the way it helped me 🤗🙏🏾
@baichen6449
@baichen6449 5 жыл бұрын
your explanation really helps people who were totally lost, like me.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
nah, ur good
@anniewiley1425
@anniewiley1425 3 жыл бұрын
Hey man I just wanted to say I think these videos are immensely helpful. The way you explain your thought process on these complex but tiny subjects rashly helps a person change the way they think about code, not to mention learning the lingo of a SWE. Also please don't ever lose the awkward endings and outtakes.
@SR-we1vl
@SR-we1vl 4 жыл бұрын
Whenever I get stuck on a problem and see if your video is there, I'm relieved! Thank you man!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
Nice sure
@cuteypatootie
@cuteypatootie 3 жыл бұрын
I have spent literal years glossing over bitshifting because no explanation could come close to me understanding it. I now have at least a basic knowledge and a starting place. Thank you!
@donurukirankumarreddy8872
@donurukirankumarreddy8872 5 жыл бұрын
The best teaching that I have seen in my life till now is yours .
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
thanks
@vS-xv7vm
@vS-xv7vm 4 жыл бұрын
Explanation is so good that we won't need to write code for this in interview - just a dry-run with example would do.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
ye
@haleygu2171
@haleygu2171 5 жыл бұрын
Faced this problem in an interview with Qualcomm ... I wish I could see this video earlier to come up with bit manipulation solution :( Thanks a lot for clear explaination!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
nice
@prithazz
@prithazz 4 жыл бұрын
This is a stupid interview question to ask.. honestly, they don't deserve you.
@snlagr
@snlagr 4 жыл бұрын
@@prithazz maybe they wanted to check low level understanding
@calvinchankf
@calvinchankf 5 жыл бұрын
To begin with, here is an intuitive approach for this question. This is not optimal, but its easier to understand and present to your interviewer(at the beginning) def addTwoNumbersWithoutPlus(a, b): arr = [] carry = 0 while a > 0 or b > 0: # get the least significant digit of a x = 0 if a > 0: x = a & 1 a >>= 1 # get the least significant digit of b y = 0 if b > 0: y = b & 1 b >>= 1 # add them by using a naive hard-coded table num, carry = add(x, y, carry) arr.append(num) # append the carry if it exists if carry > 0: arr.append(1) # binary to int res = 0 for i in range(len(arr)): res += arr[i] * 2**i return res def add(a, b, carry): m = { (0, 0, 0): (0, 0), (0, 1, 0): (1, 0), (1, 0, 0): (1, 0), (1, 1, 0): (0, 1), (0, 0, 1): (1, 0), (0, 1, 1): (0, 1), (1, 0, 1): (0, 1), (1, 1, 1): (1, 1), } return m[(a, b, carry)]
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
nice
@CodingForRealLife
@CodingForRealLife 5 жыл бұрын
Now I understand a lot of techniques that I wasn't able to understand before by following your channel, keep it up!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
nice
@datle5503
@datle5503 3 жыл бұрын
This is the ultimate guide to this hell of bits manipulation. Thank you so much.
@ZhenyaVlasov
@ZhenyaVlasov 5 жыл бұрын
Thanks for your vids. I found some inconsistencies with your explanation. At 11:48 you say that when we do shift, '1 gets shifted out'. However, it doesn't. As an example, take 0101 (5) and 1101(13) When shifting, we add 0 on the right side and if carry started with 1, it will grow as well. We can't loose the first 1 because just like other 1s in the carry, it specify an index where we need to carry over. In the provided github code, line 134, it says "1 got shifted out". Again, if we shift it, we will loose part of our answer. The reason why, at some point, 'carry' becomes 0 and we brake out of the loop, because on 3rd iteration after increasing the carry by one more digit, we will be performing '&' operation between 4 digit (0010) and 5 digit (10000). The result of it will be 00000. Result of the '^' operation will be 10010 (which, again, won't be possible if we lost that left most '1'. 'carry
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Woah, a lot to parse, will need to jog my memory on this one. And nice, hey, I'm in Maryland rn so oof
@hoboshenanigans
@hoboshenanigans 5 жыл бұрын
Dude keep it up, i've learned more from you then my attempt at graduate school lol
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
ha nice
@janmichaelaustria620
@janmichaelaustria620 4 жыл бұрын
Likewise!
@OhsoLosoo
@OhsoLosoo 3 жыл бұрын
Using that ad to cover the redundant statement was brilliant lmao. I would've never noticed it was repeated if you didn't point it out honestly.
@Mysticbeing21
@Mysticbeing21 2 жыл бұрын
Ive learnt alot today. Ive been struggling these days and i was almost burn out because of the amount of unfinished projects i had. Thank you
@BackToBackSWE
@BackToBackSWE 2 жыл бұрын
Happy to help
@ShuangyiHu
@ShuangyiHu 9 ай бұрын
You are such a good teacher! Thanks for breaking down the basics and emphasizing the details!
@ハイらムハイマん
@ハイらムハイマん 2 жыл бұрын
My Brother, since college back in 1999, I haven't had to use it. But, you have refreshed my way of thinking. Thanks and continue to progress forward!!!!
@maxxxxx93
@maxxxxx93 5 жыл бұрын
very well explained solution! i think it’s worth noting that this only really works with positive integers
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Yeah, true, I'll add that to the notes.
@Oda3908
@Oda3908 3 жыл бұрын
5 steps: 1. base 10 to base 2 2. while carry > 0 3. carry = a & b 4. b = a ^ b 5. a = carry k = x * (1/2)^k, note that right shift will cut off the decimal part, e.g. 20 >> 3 => 20 * 1/8 => 2.5 = 2
@finiteimpulse3765
@finiteimpulse3765 5 жыл бұрын
A short video like this about Two's complement would be great.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
ok
@musicvoice3030
@musicvoice3030 4 жыл бұрын
Genuinely explained. Excellent, keep doing your work. You`re a great teacher.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks.
@zelmagarza
@zelmagarza 5 жыл бұрын
Great vid! Why isn't it enough to do the following? int whereCarry = (a & b)
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
I haven't replied to this for a bit, replying to close this out in my "unresponded to comments" feed.
@a.yashwanth
@a.yashwanth 4 жыл бұрын
Because when you use | it does not add two numbers. If it adds, then we would use a|b directly.
@OhsoLosoo
@OhsoLosoo 3 жыл бұрын
Love you man. I'm in Graduate school & your videos have helped me so much.
@thev01d85
@thev01d85 3 жыл бұрын
You are extremely talented at teaching this stuff, I have struggled with bitwise operations for a while now, however after watching your explanation I was able to implement this myself, which is a major break through. Thank you for this video!
@BackToBackSWE
@BackToBackSWE 3 жыл бұрын
Glad to know we could help!
@skullTRTR
@skullTRTR 5 жыл бұрын
Wow finally found someone who can explain things on youtube. Thanks.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
sure
@skullTRTR
@skullTRTR 5 жыл бұрын
@@BackToBackSWE youtube needs someone who can explain system design questions as well.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
@@skullTRTR Gaurav sen
@popoffs5273
@popoffs5273 2 жыл бұрын
You just explained how computers add on a fundamental level. Well done
@matthewpourroy1342
@matthewpourroy1342 Жыл бұрын
Back To Back SWE + Leetcode + Cracking the Coding Interview = Total Interview prep package
@pritomdas6215
@pritomdas6215 5 жыл бұрын
wow...it did take me a lot of rewinding to understand, but thanks to God I finally could get the whole picture of how it works.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
nice
@youarecorrectiamwrongbecau1338
@youarecorrectiamwrongbecau1338 5 жыл бұрын
Watched on C computer Opened KZbin on phone just to like the video Then thought you are really good so suscribed also And and and ... (redundant) I understand why these kind of stuffs are generally not well explained or no one does some hard work on it because everyone thinks that other DS&A are more important and they mostly form important questions but this concept was required in a programming question where looking to solve at the problem from this perspective seemed improbable. But normal bitwise loop operation would exceed the time limit. The only way was to understand thoroughly how the shifting works and then solve the question in a completely different way and then it passed within time limits. Keep posting concepts like these because they form really difficult questions.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Thx and ok
@kevinkkirimii
@kevinkkirimii 3 жыл бұрын
I start so well, then I just get lost. I have to find a way to get this concepts in my head permanently.
@CHIRANJIBNANDY1
@CHIRANJIBNANDY1 5 жыл бұрын
Bro...u r a genius.... thanks for making me prepared.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
nice! good luck
@PheezxCoding
@PheezxCoding 3 жыл бұрын
Your explanations are always so clear and engaging.
@AlexanderFilippov-ua
@AlexanderFilippov-ua 5 жыл бұрын
This is the best explanation I've ever seen! Thanks a lot!!!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
sure
@jeromepowell1423
@jeromepowell1423 2 жыл бұрын
Great video. Speaking the entire process through like the computer solidified it for me.
@waiyanleung5199
@waiyanleung5199 4 жыл бұрын
Totally understood from zero background. Thumbs up!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
nice
@vishaltambrahalli3461
@vishaltambrahalli3461 2 жыл бұрын
Not able to find the code in the description! Can some let me know if I'm missing something?
@firedragontamer8330
@firedragontamer8330 3 жыл бұрын
Very helpful but the code examples are missing from the description, were they removed?
@brandongagon
@brandongagon 4 жыл бұрын
"A problem well stated is a problem half solved" -Charles F. Kettering
@stevenalexander6262
@stevenalexander6262 4 жыл бұрын
i need to remember this...
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
ye
@imagineabout4153
@imagineabout4153 4 жыл бұрын
I just started to study this stuff and my mind is like seeing the light
@AarshSharma
@AarshSharma 4 жыл бұрын
Haven't seen a better explanation. Kudos.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks
@qiskko
@qiskko 5 жыл бұрын
This is great! but I wish you put the code in your video rather than in the description.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
yeah got it
@yega3k
@yega3k 4 жыл бұрын
I just tried this in Python. It feels like voodoo! a = 1 b = 3 while True: # 1. carries first c = a & b # 2. sum with XOR a = a ^ b if c == 0: print(‘ans:’, a) # no carries left, print ans: 4 break # 3. shift carries by one position to the left b = c
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
ye
@erickbarbosa5476
@erickbarbosa5476 4 жыл бұрын
This guy was born to teach!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
yis he wuz
@cristianouzumaki2455
@cristianouzumaki2455 4 жыл бұрын
This couldn't have been explained any better.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
eh maybe it could've
@sanapalavenkatesh5273
@sanapalavenkatesh5273 3 жыл бұрын
Awesome explanation.. By the way once again thank you for ...
@vivaanbaid9975
@vivaanbaid9975 2 жыл бұрын
love this channel!
@BackToBackSWE
@BackToBackSWE 2 жыл бұрын
thanks buddy! try our 5 day free mini course for some awesome content - backtobackswe.com/
@anujagrawal60
@anujagrawal60 4 жыл бұрын
Never saw a better explanation than this👏👏👏
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks
@mallikarjunpidaparthi
@mallikarjunpidaparthi 4 жыл бұрын
Wow. You made it so simple. Thank you sir.
@humengineerhaijholalekarni8408
@humengineerhaijholalekarni8408 5 жыл бұрын
OMG came from Geeksforgeeks. Thank you so much sir.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
sure
@VladimirTheAesthete
@VladimirTheAesthete 2 жыл бұрын
That's a pretty intuitive explanation here!
@PiBiNi
@PiBiNi 4 жыл бұрын
Loved the way you explained even the basics. Thank you.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure
@dicointech
@dicointech 5 жыл бұрын
Great video. It would be better if you say & is to find 1&1. For example , when 01 + 11, we need to carry at 0&1 as well because of carry from 1&1
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Good point. I'll keep this in mind. Though, I feel like 7:52 and 8:32 explain that clearly.
@Cyber99221
@Cyber99221 3 жыл бұрын
Oh wow! Cool, this was a nice refresher. Great video
@jkim5118
@jkim5118 5 жыл бұрын
I am always impressed with your videos. How do you choose the questions? It seems like you have a set of question that you plan to cover and I can feel that those questions are more relevant to actual skills that we need for interviews (not like brain teasers). Also, what's your plan after to cover all planned questions?
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
I built a list of like 300 when I started this channel. But at some point I just started doing the most burning questions that I felt that I just HAD to try to cover. And as for plans after I have many questions covered...eh, I don't know. Here is my rough plan for this project: backtobackswe.com/plans I don't think any human can ever cover all questions. But they can cover all topics and concepts. This channel is far from the latter.
@reemasharma6188
@reemasharma6188 4 жыл бұрын
You did such a great job at explaining this tedious problem. Please make a video on Dynamic programming concepts as well. :-)
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
ok
@os2958
@os2958 3 жыл бұрын
much better than the technique taught in my grad class
@omkargunjal1611
@omkargunjal1611 5 жыл бұрын
Never thought about this logic 😯😯.... Amazing 😍😍
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
sure
@harinijeyaraman8789
@harinijeyaraman8789 4 жыл бұрын
This was super helpful !! You're amazing at teaching !
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks - glad it helped
@jhessikanda
@jhessikanda 3 жыл бұрын
hey great video!!! I just couldn´t find the code in the description =(
@xulinazrx
@xulinazrx 4 жыл бұрын
You are awesome! Your presentation is so clear and easy to understand!
@harshjoshi2523
@harshjoshi2523 5 жыл бұрын
leetcode brings me here :) Thanks sir you are a good teacher :)
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
ya
@sinify6676
@sinify6676 4 жыл бұрын
You always have good lectures here. Just something small (i know the video is old, but w/e): I think saying "how many of each value can we fit" is a bit misleading, since we only ever represent each place with 1 or 0. I personally think it makes more sense to scan from left to right, always checking if the current place fits into the number (updating the new target value as you did). I.e., if you follow this method, there should never come a time where you can fit MORE than 1 value, because that would imply you missed a higher value previously--if I can fit two 8's, I should have used 16.
@deepamgoel5396
@deepamgoel5396 4 жыл бұрын
Hey, thanks for the video! You're the best. Can you make more videos on bit manipulation please?
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thx - thx - sure
@Sarah-il5dr
@Sarah-il5dr 4 жыл бұрын
You are my go to when comes to all questions!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
ye
@amanzholdaribay9871
@amanzholdaribay9871 4 жыл бұрын
Man, that's been interesting and fun to listen to you! Thanks! I got topic)
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
nice
@tulufokaki6947
@tulufokaki6947 3 жыл бұрын
Thank you so much, this solve my wondering for years as not an engineer
@Firstusee256
@Firstusee256 5 жыл бұрын
You helped a lot , thank you for making such kind of videos.....
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
sure
@lets_see_777
@lets_see_777 5 жыл бұрын
best explanation, subbed
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
thanks
@top-list6450
@top-list6450 5 жыл бұрын
Thank you so much for the clear explanation. Could you please upload video on Division as well
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
yes
@ranjanasinha
@ranjanasinha 5 жыл бұрын
Hi. Great Video. Could you please cover the scenarios involving negative numbers. I tried to solve this in python. It failed for the negative numbers.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
yeah
@VocalWithShubham
@VocalWithShubham 4 жыл бұрын
As you have mentioned that this only works with positive integers. What about negative integers. How to add negative integers without using any arithmetic operators?
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
no idea
@igo1071
@igo1071 4 жыл бұрын
U R an excellent teacher 👍🏼thanks a lot ✔️
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
Thanks sure - parents....
@hrithikdhanraj2919
@hrithikdhanraj2919 3 жыл бұрын
That's simply Great. I appreciate your work. Thanks for the explanation ♥️♥️
@traveltechtaste41
@traveltechtaste41 4 жыл бұрын
Thanks for explaining this so clearly
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure!
@SpiffyFurFamily
@SpiffyFurFamily 3 жыл бұрын
Best explanation I've seen. It helped me implement my C# program! Could you do a similar video for substraction without using arithmetic operators?
@syedsafdarali4287
@syedsafdarali4287 3 жыл бұрын
The whole time i was thinking he is going to do a shitty approach of iterating through all the 31 bits But in the last when he used &^ and
@asmitadhungana3790
@asmitadhungana3790 2 жыл бұрын
This was a real cool and intuitive explanation! Thanks!
@BackToBackSWE
@BackToBackSWE 2 жыл бұрын
Thank You, Glad you liked it. Do check out backtobackswe.com/platform/content and please recommend us to your family and friends :)
@alex-gz7ud
@alex-gz7ud 3 жыл бұрын
Thank you for the explanation!! You are awesome!!!
@TheLovegarg
@TheLovegarg 4 жыл бұрын
the best video on this question
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
Thanks
@demigod6190
@demigod6190 3 жыл бұрын
Thank you very much. Finally, I got the concept!
@siddhantsharma4011
@siddhantsharma4011 Жыл бұрын
Glad I found this channel. Truly amazing 🎉
@BackToBackSWE
@BackToBackSWE Жыл бұрын
Happy Halloween 🎃 Thank you for your kind words, Siddhant! Let us know other topics we could cover! We'd love to offer you 50% Off our exclusive lifetime membership use the code SPOOKY50 - backtobackswe.com/checkout?plan=lifetime-legacy&discount_code=SPOOKY50
@namanshah9216
@namanshah9216 4 жыл бұрын
What an explanation man! thank you ton!!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure
@cshivani
@cshivani 4 жыл бұрын
Excellent, you have put in lot of effort in explaining it, thanks appreciate it!! :)
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure
@pradhumansingh3933
@pradhumansingh3933 2 жыл бұрын
Thanks a lot.Ur explaination really cleared my doubt....
@abhilashpatel3036
@abhilashpatel3036 4 жыл бұрын
So clearly explained, i can't thank enough. 👍
@cozywanderer
@cozywanderer 4 жыл бұрын
This was a fantastic explanation!!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks
@Animax590
@Animax590 3 жыл бұрын
you really helped with just simple concepts
@shrutiagrawal6065
@shrutiagrawal6065 4 жыл бұрын
this is really awesome. really loved it gr8 work!!!! all doubts are solved thanks..!!!!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure
@user-wb5ox7nw2u
@user-wb5ox7nw2u 3 жыл бұрын
Man you are something else love from India 🇮🇳
@aayush5474
@aayush5474 4 жыл бұрын
I am enjoying this more than netflix
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
great
@rahulpothula1902
@rahulpothula1902 2 жыл бұрын
The video is super helpful as usual... BTW, what's the name of the outro music??
@girishthatte
@girishthatte 4 жыл бұрын
Awesome explanation covering from basics 🔥
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thx
@alexeydemyanchuk
@alexeydemyanchuk 2 жыл бұрын
Best explanation, so thank you, man!
@fangzhenghu6479
@fangzhenghu6479 5 жыл бұрын
Thanks! I wonder why a solution which supports negative integers is not discussed here? Is it because such a case is unlikely to present in an interview?
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
No, I just never solved it for that case, not sure how negatives would be accommodated without thinking on it for a bit
@fangzhenghu6479
@fangzhenghu6479 5 жыл бұрын
@@BackToBackSWE That's fair. I saw an easy-understanding answer that handles the negative case, which you or other audiences might be interested in leetcode.com/problems/sum-of-two-integers/discuss/84290/Java-simple-easy-understand-solution-with-explanation/
@shyammuppidi2092
@shyammuppidi2092 4 жыл бұрын
Awesome bro love all your videos
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thank you.
@punittiwari7557
@punittiwari7557 5 жыл бұрын
Can you please tell Is there is any way to know how many times this loop will run or execute???
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
uh
@punittiwari7557
@punittiwari7557 5 жыл бұрын
@@BackToBackSWE I was solving a problem in which the question asked how many times this while loop will work and it is giving TLE if just count how many times it is executing... So I want to know "Is there is any way to directly know how many times this gonna be executed"...
@sumitgupta2618
@sumitgupta2618 5 жыл бұрын
@@BackToBackSWE he means how many time the iteration will happen until carry becomes zero?
@prabhatkashyap8333
@prabhatkashyap8333 5 жыл бұрын
Codechef question BINADD, www.codechef.com/DEC19B/problems/BINADD
@femi_alogba
@femi_alogba 2 жыл бұрын
Excellent teacher. Excellent!!
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 5 МЛН
This Game Is Wild...
00:19
MrBeast
Рет қаралды 187 МЛН
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 98 МЛН
Sum of Two Integers - Leetcode 371 - Java
11:48
NeetCode
Рет қаралды 126 М.
The Backtracking Blueprint: The Legendary 3 Keys To Backtracking Algorithms
13:44
Intro to Binary and Bitwise Operators in C++
21:40
The Cherno
Рет қаралды 137 М.
The Change Making Problem - Fewest Coins To Make Change Dynamic Programming
23:12
How many people are in the changing room? #devil #lilith #funny #shorts
00:39