L8. XOR of Numbers in a Given Range | Bit Manipulation

Поділитися
Вставка
  • Опубліковано 3 лют 2025

КОМЕНТАРІ • 73

  • @virgarg9653
    @virgarg9653 11 місяців тому +148

    i was the guy who requested striver bhaiya to make playlist on bit manipulation. cheers guys 😀

  • @worldofniyathi
    @worldofniyathi 7 місяців тому +5

    no one can explain better than you, forever grateful!

  • @momentcoder
    @momentcoder 15 днів тому +1

    Understood from the best mentor of my life. 😀

  • @knowthrvdo
    @knowthrvdo 10 місяців тому +5

    plz make video on string and other topics as well really exited to learn from you. and thanks for this lecture as well .

  • @ToonDubberDuo
    @ToonDubberDuo 2 місяці тому +2

    bit manipulation is really fun to understand!!

  • @NikunjKumarGupta
    @NikunjKumarGupta 10 місяців тому +51

    bhai yeh konsa interviewer h ?? Sala kabhi khush nhi hota 🙂😅

    • @indrajitpal02
      @indrajitpal02 6 місяців тому +7

      female interviewers 🤡

    • @zenmonk29
      @zenmonk29 5 місяців тому +7

      @@indrajitpal02 true that. -_-

  • @AyushSingh-em2il
    @AyushSingh-em2il 10 місяців тому +4

    Absolutely Amazing!

  • @waiitwhaat
    @waiitwhaat 4 місяці тому

    this solution tickles my brain and makes me chuckle.

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

    thanku striver .....again you teach something which is near to impossible to learn by self

  • @stith_pragya
    @stith_pragya 9 місяців тому +1

    UNDERSTOOD...Thank You So Much for this wonderful video.......🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻

  • @neelesh621
    @neelesh621 2 місяці тому

    Woww, so enjoyable solution, maza aa gaya

  • @UECAshutoshKumar
    @UECAshutoshKumar 10 місяців тому +2

    Thank you 😊

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

    Striver explains it soo damn well and easy , it makes me feel dumb. 🤟

  • @SatyamYadav04
    @SatyamYadav04 19 днів тому

    It was great answer :) really enjoyed 🤪

  • @saitejanedunoori5451
    @saitejanedunoori5451 5 місяців тому +1

    Thank you Raj anna

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

    Thanks striver! Extremely helpful video!!

  • @SAI-q1v
    @SAI-q1v Місяць тому +1

    after first prbm was able to figure it out 😁

  • @jiteshrajoriya5164
    @jiteshrajoriya5164 5 місяців тому +1

    Bro was like I am not going to ( write psudo code ) ok I will write 😂😂

  • @KidsCorner-r9n
    @KidsCorner-r9n 3 місяці тому

    just saw your post on linkedin ..take care

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

    understood🤩

  • @shahidullahmuffakir668
    @shahidullahmuffakir668 7 місяців тому +1

    done n dusted.Thanks.

  • @akashkumaryadav1827
    @akashkumaryadav1827 4 місяці тому

    🔥 awesome

  • @nayankhuman1043
    @nayankhuman1043 4 місяці тому

    Understood :)

  • @Rahulyadav-sd3oj
    @Rahulyadav-sd3oj 11 місяців тому

    Thank you sir

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

    Too good !!!

  • @rishabhkansal5811
    @rishabhkansal5811 11 місяців тому

    Thanks sirrr😊

  • @pardhi8959
    @pardhi8959 10 місяців тому

    understood

  • @Harshraj-xw4wb
    @Harshraj-xw4wb 10 місяців тому +1

    best

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

    thank you sir !

  • @khalasianiket816
    @khalasianiket816 6 місяців тому

    understood❤

  • @shashankgsharma0901
    @shashankgsharma0901 6 місяців тому

    Understood!

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

    Understood

  • @Learnprogramming-q7f
    @Learnprogramming-q7f 9 місяців тому

    Thank you Bhaiya

  • @tanujaSangwan
    @tanujaSangwan 4 місяці тому +8

    What kind of question was this!!!!!!!!!!! Was anyone able to solve it without watching the video?

  • @sumitworld918
    @sumitworld918 6 місяців тому

    Understand

  • @Aadhimolam
    @Aadhimolam 4 місяці тому +1

    Why striver do to like this?could you pls put a video for strings.we are eager to wait when you will upload a video😊😂?common striver

  • @aryansinha1818
    @aryansinha1818 2 місяці тому

    3:00

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

    why its not like
    return func(l) ^ func(r)

    • @AshishSingh-he2qo
      @AshishSingh-he2qo 5 місяців тому +5

      Because if u do function(l) then it means xor from 1 to l and function(r) which is 1 to n
      Let's take an example l=4, r=8
      Function(l)--> 1^2^3^4
      Function(r)-->1^2^3^4^5^6^7^8
      So as we know in xor the same value gets 0 like 1^1 = 0 and we can see here (1^2^3^4)(l)^(1^2^3^4)=0 so remaining xors are (5^6^7^8) but in question it says xor b/w 4 to 8 so that's why we do function(l-1)

  • @codingp110
    @codingp110 7 місяців тому

    US!

  • @Ayeshasingh720
    @Ayeshasingh720 День тому

    us

  • @akworld2739
    @akworld2739 9 місяців тому +1

    1^1= 1 how please tell me

    • @Islam-sq5ij
      @Islam-sq5ij 9 місяців тому

      0000^0001=0001

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

      Bhai tu thoda sa andha h kya​@@Islam-sq5ij

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

      0 hoga

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

      0 hoga

    • @moneyonline5299
      @moneyonline5299 8 місяців тому +3

      for N = 1 , there is only 1 element in the range (1,1) so we are not xoring anything , its just a number ,because there is only one number in the range .

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

    sexi concept

  • @SibiRanganathL
    @SibiRanganathL 6 місяців тому

    man dude...............

  • @anshsaxena7297
    @anshsaxena7297 4 місяці тому

    Understood

  • @chiragbansod8252
    @chiragbansod8252 10 місяців тому

    understood

  • @SitaRam-m1i
    @SitaRam-m1i 3 місяці тому +1

    Understood

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

    understood

  • @hardikpatel352
    @hardikpatel352 7 місяців тому +1

    understood

  • @havefunwithshort
    @havefunwithshort 7 місяців тому +1

    understood

  • @sarder681
    @sarder681 6 місяців тому

    understood

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

    understood