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

Поділитися
Вставка
  • Опубліковано 28 лис 2024

КОМЕНТАРІ • 29

  • @dajucoder
    @dajucoder 4 місяці тому +12

    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"

  • @jeffkirchoff14
    @jeffkirchoff14 Рік тому +6

    It doesn't work for negative integers

  • @royalkumar7658
    @royalkumar7658 2 роки тому +1

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

  • @ThomasShelby0099
    @ThomasShelby0099 2 роки тому +4

    Beautifully explained Sir 🌟

    • @yash.dwivedi
      @yash.dwivedi 2 роки тому

      Glad that you liked my explanation thank you keep coding ✨

  • @rijumondal6876
    @rijumondal6876 11 місяців тому +3

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

    • @vamsi9362
      @vamsi9362 3 місяці тому +1

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

  • @adilakshmi3808
    @adilakshmi3808 Рік тому +1

    Thanks for the clear explanation

  • @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 🙌

  • @anubhavsrivastava6976
    @anubhavsrivastava6976 9 місяців тому

    May i know which editor are you using?

  • @abhishekkarn8918
    @abhishekkarn8918 7 місяців тому +2

    bhai rata hua cheez ugal diye kya yahan pe?

  • @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 ✨

  • @anujkumarpatel2686
    @anujkumarpatel2686 2 роки тому

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

  • @aliyat1798
    @aliyat1798 5 місяців тому

    but this code isn't working when b=0

  • @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 11 місяців тому +1

      0:27

  • @SurajKumar-sj4th
    @SurajKumar-sj4th 2 роки тому +16

    Jhatu explaination

  • @aishwaryaranghar3385
    @aishwaryaranghar3385 2 роки тому

    THANKYOUUUUUUUU!!!!!!!!!!

  • @elakcc7889
    @elakcc7889 Місяць тому

    right

  • @codesetter2497
    @codesetter2497 3 місяці тому

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

  • @jatinchouhan1738
    @jatinchouhan1738 10 місяців тому +1

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

  • @trendyshorts0678
    @trendyshorts0678 20 днів тому

    Very bad explanation 😢

  • @digitalmarketing3817
    @digitalmarketing3817 Рік тому

    Cute :)