Sum of two numbers without using arithmetic operators | Problem of the day: 22/04/22 | Yash Dwivedi

Sdílet
Vložit
  • čas přidán 22. 04. 2022
  • Solve this problem : practice.geeksforgeeks.org/pr...
    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.geeksforgeeks.org/pr...
    Getting bored just watching? Start practicing on your own: practice.geeksforgeeks.org/ex...
    Follow us and stay updated on everything happening in the world of geeks:
    Twitter- / geeksforgeeks
    LinkedIn- / geeksforgeeks
    Facebook- / geeksforgeeks.org
    Instagram- geeks_for_g...
    #GFGPractice #GeeksforGeeks #PracticeProblems #CodingQuestions

Komentáře • 25

  • @dajucoder
    @dajucoder Před 22 dny +3

    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"

  • @adilakshmi3808
    @adilakshmi3808 Před rokem +1

    Thanks for the clear explanation

  • @anujkumarpatel2686
    @anujkumarpatel2686 Před rokem

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

  • @anubhavsrivastava6976
    @anubhavsrivastava6976 Před 5 měsíci

    May i know which editor are you using?

  • @jeffkirchoff14
    @jeffkirchoff14 Před rokem +2

    It doesn't work for negative integers

  • @rijumondal6876
    @rijumondal6876 Před 6 měsíci +1

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

  • @aliyat1798
    @aliyat1798 Před 28 dny

    but this code isn't working when b=0

  • @ThomasShelby0099
    @ThomasShelby0099 Před 2 lety +4

    Beautifully explained Sir 🌟

    • @yash.dwivedi
      @yash.dwivedi Před 2 lety

      Glad that you liked my explanation thank you keep coding ✨

  • @abhishekkarn8918
    @abhishekkarn8918 Před 3 měsíci +1

    bhai rata hua cheez ugal diye kya yahan pe?

  • @aishwaryaranghar3385
    @aishwaryaranghar3385 Před 2 lety

    THANKYOUUUUUUUU!!!!!!!!!!

  • @royalkumar7658
    @royalkumar7658 Před rokem

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

  • @surabhichoubey2987
    @surabhichoubey2987 Před 2 lety +4

    Helpful keep uploading 💫💫

    • @yash.dwivedi
      @yash.dwivedi Před 2 lety +2

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

    • @surabhichoubey2987
      @surabhichoubey2987 Před 2 lety +1

      Sure 🙌

  • @subhashvemula3363
    @subhashvemula3363 Před rokem +2

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

  • @zoso25
    @zoso25 Před 2 lety +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 Před 2 lety

      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 Před rokem

      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 Před 6 měsíci +1

      0:27

  • @ShivOM75
    @ShivOM75 Před 2 lety +4

    amazing session
    understood each line 🔥

    • @yash.dwivedi
      @yash.dwivedi Před 2 lety +2

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

  • @SurajKumar-sj4th
    @SurajKumar-sj4th Před 2 lety +14

    Jhatu explaination

  • @digitalmarketing3817
    @digitalmarketing3817 Před rokem

    Cute :)

  • @jatinchouhan1738
    @jatinchouhan1738 Před 5 měsíci

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