Sum of two numbers without using arithmetic operators | Problem of the day: 22/04/22 | Yash Dwivedi
ฝัง
- เผยแพร่เมื่อ 1 ต.ค. 2024
- Solve this problem : practice.geeks...
Free resources that can never be matched, presented to all our Geeks for free! Subscribe now and start practicing today: / geeksforgeekspractice
Daily solutions are also uploaded exclusively on our channel! So start solving today and subscribe to our channel for the free coding lessons.
Solve the Problem of the day and test yourself: practice.geeks...
Getting bored just watching? Start practicing on your own: practice.geeks...
Follow us and stay updated on everything happening in the world of geeks:
Twitter- / geeksforgeeks
LinkedIn- / geeksforgeeks
Facebook- / geeksforgeeks.org
Instagram- www.instagram....
#GFGPractice #GeeksforGeeks #PracticeProblems #CodingQuestions
sir "right" you "right" are "right" a "right" great "right" teacher "right"
great "right" explaination "right" sir "right"
all "right" i "right" remember "right" is "right" right "right"
Jhatu explaination
It doesn't work for negative integers
What if right , right , what if , what if , right , right , what if right bc
at 6:36 the result when u do xor is 100
Helpful keep uploading 💫💫
Hi Surabhi glad that you liked the explanation thank you for your valuable feedback keep coding ✨
Sure 🙌
wait one second, bro you did a addition inside the for loop which is prohibited in the question
Question is that without using + operator so + is binary operator,
++ Is unary operator
Beautifully explained Sir 🌟
Glad that you liked my explanation thank you keep coding ✨
Please improve your communication, repeating a line million times. I am Frustrated with your explanation.
bhai rata hua cheez ugal diye kya yahan pe?
Thanks for the clear explanation
If this had been an interview question, I'm pretty sure I wouldn't have come up with this and would've answered with writing inline assembly instructions to add the numbers...😢
Hi zoso even if you couldn't think of the optimal solution using bit don't worry just practice daily and also do problem of the day to learn new concepts this will help you to grow and crack interviews. Keep Coding💥
That's why it is recommended to study core computer science subjects along with dsa to be spontaneous and crack interviews more efficiently as this solution involves the algorithm which is used in digital electronics for full adder circuit which is a core cse subject
0:27
but this code isn't working when b=0
sum should be initialized to a...
if b = 0 then.. it will come out of loop without doing anything
May i know which editor are you using?
what if b is zero it will never go inside the while loop, right?
Cute :)
amazing session
understood each line 🔥
Hi Mahesh glad that you liked my explanation thank you for your valuable support and feedback keep coding ✨
THANKYOUUUUUUUU!!!!!!!!!!