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

ความคิดเห็น • 27

  • @dajucoder
    @dajucoder 3 หลายเดือนก่อน +9

    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"

  • @SurajKumar-sj4th
    @SurajKumar-sj4th 2 ปีที่แล้ว +15

    Jhatu explaination

  • @jeffkirchoff14
    @jeffkirchoff14 ปีที่แล้ว +5

    It doesn't work for negative integers

  • @codesetter2497
    @codesetter2497 2 หลายเดือนก่อน

    What if right , right , what if , what if , right , right , what if right bc

  • @subhashvemula3363
    @subhashvemula3363 2 ปีที่แล้ว +2

    at 6:36 the result when u do xor is 100

  • @surabhichoubey2987
    @surabhichoubey2987 2 ปีที่แล้ว +4

    Helpful keep uploading 💫💫

    • @yash.dwivedi
      @yash.dwivedi 2 ปีที่แล้ว +2

      Hi Surabhi glad that you liked the explanation thank you for your valuable feedback keep coding ✨

    • @surabhichoubey2987
      @surabhichoubey2987 2 ปีที่แล้ว +1

      Sure 🙌

  • @rijumondal6876
    @rijumondal6876 9 หลายเดือนก่อน +1

    wait one second, bro you did a addition inside the for loop which is prohibited in the question

    • @vamsi9362
      @vamsi9362 หลายเดือนก่อน

      Question is that without using + operator so + is binary operator,
      ++ Is unary operator

  • @ThomasShelby0099
    @ThomasShelby0099 2 ปีที่แล้ว +4

    Beautifully explained Sir 🌟

    • @yash.dwivedi
      @yash.dwivedi 2 ปีที่แล้ว

      Glad that you liked my explanation thank you keep coding ✨

  • @jatinchouhan1738
    @jatinchouhan1738 8 หลายเดือนก่อน

    Please improve your communication, repeating a line million times. I am Frustrated with your explanation.

  • @abhishekkarn8918
    @abhishekkarn8918 5 หลายเดือนก่อน +1

    bhai rata hua cheez ugal diye kya yahan pe?

  • @adilakshmi3808
    @adilakshmi3808 ปีที่แล้ว +1

    Thanks for the clear explanation

  • @zoso25
    @zoso25 2 ปีที่แล้ว +1

    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...😢

    • @yash.dwivedi
      @yash.dwivedi 2 ปีที่แล้ว

      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💥

    • @stealthywealthy5115
      @stealthywealthy5115 2 ปีที่แล้ว

      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

    • @atharvamukane6624
      @atharvamukane6624 9 หลายเดือนก่อน +1

      0:27

  • @aliyat1798
    @aliyat1798 3 หลายเดือนก่อน

    but this code isn't working when b=0

  • @royalkumar7658
    @royalkumar7658 2 ปีที่แล้ว

    sum should be initialized to a...
    if b = 0 then.. it will come out of loop without doing anything

  • @anubhavsrivastava6976
    @anubhavsrivastava6976 7 หลายเดือนก่อน

    May i know which editor are you using?

  • @anujkumarpatel2686
    @anujkumarpatel2686 2 ปีที่แล้ว

    what if b is zero it will never go inside the while loop, right?

  • @digitalmarketing3817
    @digitalmarketing3817 ปีที่แล้ว

    Cute :)

  • @ShivOM75
    @ShivOM75 2 ปีที่แล้ว +4

    amazing session
    understood each line 🔥

    • @yash.dwivedi
      @yash.dwivedi 2 ปีที่แล้ว +2

      Hi Mahesh glad that you liked my explanation thank you for your valuable support and feedback keep coding ✨

  • @aishwaryaranghar3385
    @aishwaryaranghar3385 2 ปีที่แล้ว

    THANKYOUUUUUUUU!!!!!!!!!!