Missing Number (LeetCode 268) | Full solution with visuals and diagrams | Study Algorithms

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

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

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

    xor solution explanation is nice🙃🙃

  • @AmeyaKherodkar
    @AmeyaKherodkar 5 หลายเดือนก่อน +2

    One of the best videos for this problem and logic explanation. Kudos ✌

  • @AnyVine
    @AnyVine 11 วันที่ผ่านมา

    Xor pehli baar dhang se samajh aaya h , thanks brother 😊😊

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

    Great explanation , need more such videos on different Leet code problems.

  • @raju_bugude
    @raju_bugude 20 วันที่ผ่านมา

    best expalnation so far in youtub regarding this topic/problem.

  • @vishnulavudya3160
    @vishnulavudya3160 3 หลายเดือนก่อน +1

    the best explanation

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

    Very nice explanations

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

    You explained so well then others

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

    Thanks excellent explanation Xor how use in this solution

  • @AvinashSingh-tr5vt
    @AvinashSingh-tr5vt ปีที่แล้ว +1

    Thank you very much for the wonderful explanation 😊

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

    Bahut accha padhaye ho bhaiyaa aap.🫂❤

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

    This is one of the best explained video for this problem

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

    Hey man! your explanation skills are excellent.

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

      Glad you like them!

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

    Sir your explanation is awesome ♥♥♥

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

    great bro

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

    Amazing explanation, thanks 👍

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

    like your solution! thanks

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

    If we add all the nums in the range and then also add the nums in the given array and subtract the sums. we would get the required answer. Wouldn't this be the most efficient way for a brute force method?
    btw wonderful explanation, thanks!

    • @ayushipawar9542
      @ayushipawar9542 16 วันที่ผ่านมา

      Yeah it will definitely work but we need optimized code...

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

    Nice! The xor really capped it. Thank you! (I couldn't resist...)
    missing = arr.reduce((t,v,i) => t ^ v ^ i, arr.length);

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

    Great explanation!!!

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

    what an excellent explaination bhaiya . Thanks for making such amazing videos for we student.
    I always look for ur videos whenver I search a problem on yt.

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

      So nice of you

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

    🎉Good

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

    thank you so much

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

    sir can you make video on another part of this problem(repeat and missing number)

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

      let me check it out.. :)

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

    how this "xor " solution can't pass test case

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

    The best one 😊

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

    Thank you.

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

    What if we use the freq array approach and find max element in array and create the freq array of that size and then increase the index, we can check if the index is 0 then that’s the missing number ?

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

    thank you sir

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

    Thank you you help me so much

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

      I'm so glad!

  • @klyucherov.e
    @klyucherov.e 11 หลายเดือนก่อน

    Спасибо индусу за туториал 👍

    • @nikoo28
      @nikoo28  10 หลายเดือนก่อน +1

      you are welcome

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

    awsome brother🥸

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

    Is bit manipulation important for interview??

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

      to be honest, it is very unlikely that you will get tough bit manipulation questions during an interview. You are just expected to know the basics, like what is left shift, what is right shift, XOR etc.
      As an interviewer, I would never ask a programming problem whose solution relies on a bit manipulation technique.

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

    can u give the brute force solution pls

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

      have you tried writing some code?

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

      @@nikoo28 I tried but I can't got it

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

    Hey Nikhil I love your content, do you have any plans for collabs? Like live problem solving and whatnots?

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

      glad you liked my content. Yep...I have plans for collabs and live sessions when the time is right :)

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

      @@nikoo28 or provide me your insta account I will dm you.

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

      @@kunalkheeva you can email me on the address provided in the channel description :)

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

    Bruteforce ka code send krdo

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

      You don’t need the code for brute force method

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

    0,1 ka kese niklega iss approch se

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

      What do you mean?? Please elaborate a little

  • @demonders5486
    @demonders5486 7 หลายเดือนก่อน +1

    😅😅😅😅😅😅😅

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

    good explanation bro..

  • @user-yl4vp2ox8v
    @user-yl4vp2ox8v 3 หลายเดือนก่อน

    // Online C compiler to run C program online
    #include
    int main() {
    int arr[] = { 1,5, 9, 100 };
    int m = 0;
    int size = sizeof(arr)/sizeof(int);
    for (int i = 0 ; i< size ; i++)
    {
    for (int j = m+2 ; j < arr[i+1]; j++)
    {
    if ( arr[i] != arr[j])
    {
    printf(" %d", j);
    }
    m = j ;
    }
    printf("
    ");
    }
    }