Find Missing and Repeating Number | 5 Approaches with Full Code in Comments | Bit Manipulation Array

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ต.ค. 2024

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

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

    Using Sign Trick:
    int* ans;
    // ans[0]->repeating
    // ans[1]->missing
    for(int i=0;i 1
    if(arr[x]repeating
    ans[1] = 0; //bit not set //->missing
    for(int i=0;i

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

    Your XOR explanation is the best on youtube. I randomly chose to see this video on search results and now I am surprised by such a beautiful explanation.

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

    You explained the XOR one the best I saw on YT

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

    I found a highly underrated GEM
    You are way better than so called DSA-Gurus

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

    Your channel is so underrated! Thanks for the alternate approaches, great explanation.

  • @sarowerrafin5168
    @sarowerrafin5168 ปีที่แล้ว +3

    I personally recommend your videos to all my coder friends as your ability of making people understand the solution is amazing

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

    Watching after tons of videos in this problem. Finally i understood this now . Thank you very much. And to be honest , you explained this much better than striver.

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

    Love you Alisha, you are just the best.
    Literally nowhere on youtube could i find any clear solution. But you saved us.

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

    you're one of the rare person who solves code in C , thats really wonderful , looking forward to more of your videos

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

    Just came back to this video to say thank you for making this, approach 2 and 4 are my preferred ways of solving this and are perfect. Thanks for your help

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

    Amazing explanation ma'am 👌👌😊👍

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

    u deserve 100k subscribers

  • @KishanKumar-mf5ru
    @KishanKumar-mf5ru ปีที่แล้ว

    Xor explaining is awesome

  • @needsomeone3636
    @needsomeone3636 5 วันที่ผ่านมา

    Can you share mathematical approach like how should I code it ?? Btw amazing knowledge 👍🏻

  • @karthick...
    @karthick... ปีที่แล้ว

    thank u i literally watched 2 times to catch your speed amazing work

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

    In XOR, how can we sure that the diffrentiating bit will lead us to the answer. I have understood your point for putting the values in 2 different buckets accordingly but how diffrentiating bit is leading us to the solution
    3^4 = 1 so what??

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

    This is most Underated Channel

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

    sign trick in Approach 3 is wowww!

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

    Exception Explanation 🔥

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

    Thank you. ur explanation is awesome

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

    You are too good 😍

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

    Thank you so much.

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

    😊 thanks ma'am

  • @Chris-ej5de
    @Chris-ej5de 10 หลายเดือนก่อน

    how can we get multiple approaches with any problem ???? Unbelievable 🙌🙌🙌😵

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

    Didn't get the intuition behind xor approach

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

    Thank you alisha👍🏽

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

    Thanks a lot maam

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

    Damn good yrr... 👍

  • @it-series-music
    @it-series-music ปีที่แล้ว

    The video is nice but I suggest that you avoid repeating same line multiple times. For e.g "xor of 2 and 3 is 1" you have repeated this thrice ....this makes the video unnecessarily long

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

    👌👌👌

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

    Thanks diii

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

    striver really confuses a lot

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

    I hate Math solution's so damn much. They are so unintuitive to come up with during an interview especially if you never seen this problem before.
    I'm gonna stick to the counts tracker solution and the sign trick solution, thank you

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

    You are a metallurgical engineering ,then how are so proficient in coding,huh?

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

    Top notch explanation💯🔥