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

  Рет қаралды 20,419

Nikhil Lohia

Nikhil Lohia

Күн бұрын

Пікірлер: 55
@AnyVine
@AnyVine 3 ай бұрын
Xor pehli baar dhang se samajh aaya h , thanks brother 😊😊
@shbaad
@shbaad Ай бұрын
Great Explanation of leetcode problems.You are the only youtuber from which i can understand the leet question solutions. Keep it Up ♥
@AmeyaKherodkar
@AmeyaKherodkar 8 ай бұрын
One of the best videos for this problem and logic explanation. Kudos ✌
@ce132_sonugupta9
@ce132_sonugupta9 7 ай бұрын
xor solution explanation is nice🙃🙃
@raju_bugude
@raju_bugude 3 ай бұрын
best expalnation so far in youtub regarding this topic/problem.
@nibeditadas4182
@nibeditadas4182 4 ай бұрын
Great explanation , need more such videos on different Leet code problems.
@rachitkatariya
@rachitkatariya 6 ай бұрын
Bahut accha padhaye ho bhaiyaa aap.🫂❤
@arundhuti4101
@arundhuti4101 4 ай бұрын
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 3 ай бұрын
Yeah it will definitely work but we need optimized code...
@everyontech2716
@everyontech2716 Жыл бұрын
This is one of the best explained video for this problem
@priyakoli5572
@priyakoli5572 7 ай бұрын
You explained so well then others
@walkwithAziz2024
@walkwithAziz2024 5 ай бұрын
Thanks excellent explanation Xor how use in this solution
@HistoryHouse45
@HistoryHouse45 Жыл бұрын
sir can you make video on another part of this problem(repeat and missing number)
@nikoo28
@nikoo28 Жыл бұрын
let me check it out.. :)
@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
@AvinashSingh-tr5vt
@AvinashSingh-tr5vt Жыл бұрын
Thank you very much for the wonderful explanation 😊
@businessmotivationspot
@businessmotivationspot Жыл бұрын
Hey man! your explanation skills are excellent.
@nikoo28
@nikoo28 Жыл бұрын
Glad you like them!
@vishnulavudya3160
@vishnulavudya3160 6 ай бұрын
the best explanation
@sarveshkuthe6283
@sarveshkuthe6283 7 ай бұрын
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 ?
@sumitprasad4062
@sumitprasad4062 7 ай бұрын
Sir your explanation is awesome ♥♥♥
@jameshuddle4712
@jameshuddle4712 8 ай бұрын
Nice! The xor really capped it. Thank you! (I couldn't resist...) missing = arr.reduce((t,v,i) => t ^ v ^ i, arr.length);
@zillboy
@zillboy 9 ай бұрын
Amazing explanation, thanks 👍
@jjoelthomas
@jjoelthomas 9 ай бұрын
Great explanation!!!
@klyucherov.e
@klyucherov.e Жыл бұрын
Спасибо индусу за туториал 👍
@nikoo28
@nikoo28 Жыл бұрын
you are welcome
@nobelcoding
@nobelcoding 4 ай бұрын
Very nice explanations
@anudey8496
@anudey8496 Жыл бұрын
like your solution! thanks
@souleymen971
@souleymen971 Жыл бұрын
Thank you you help me so much
@nikoo28
@nikoo28 Жыл бұрын
I'm so glad!
@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 :)
@priyabratapadhi2421
@priyabratapadhi2421 6 ай бұрын
how this "xor " solution can't pass test case
@riya_1723
@riya_1723 7 ай бұрын
The best one 😊
@mikedelta658
@mikedelta658 10 ай бұрын
Thank you.
@gd24644
@gd24644 7 ай бұрын
thank you so much
@pavankumarpadamati8606
@pavankumarpadamati8606 10 ай бұрын
good explanation bro..
@professormoriarty7439
@professormoriarty7439 Жыл бұрын
Is bit manipulation important for interview??
@nikoo28
@nikoo28 Жыл бұрын
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.
@ghub1971
@ghub1971 9 ай бұрын
thank you sir
@keshav9541
@keshav9541 6 ай бұрын
great bro
@Mosesdaniel77
@Mosesdaniel77 4 ай бұрын
🎉Good
@vamshisundupalle6141
@vamshisundupalle6141 Жыл бұрын
can u give the brute force solution pls
@nikoo28
@nikoo28 Жыл бұрын
have you tried writing some code?
@vamshisundupalle6141
@vamshisundupalle6141 Жыл бұрын
@@nikoo28 I tried but I can't got it
@abhasthakur36
@abhasthakur36 7 ай бұрын
Bruteforce ka code send krdo
@nikoo28
@nikoo28 7 ай бұрын
You don’t need the code for brute force method
@harikumarv5009
@harikumarv5009 9 ай бұрын
awsome brother🥸
@chitra_13
@chitra_13 Жыл бұрын
0,1 ka kese niklega iss approch se
@nikoo28
@nikoo28 11 ай бұрын
What do you mean?? Please elaborate a little
@demonders5486
@demonders5486 10 ай бұрын
😅😅😅😅😅😅😅
@RameshGaridapuri
@RameshGaridapuri 6 ай бұрын
// 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(" "); } }
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 7 МЛН
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 8 МЛН
Missing Number | Multiple Approaches | Leetcode 268
24:58
codestorywithMIK
Рет қаралды 4 М.
Grade 4  [ Factors & Greatest Common Factor ] 1st/2025
29:40
Mr.Mohamed Fathy
Рет қаралды 171
Find missing number in an array
8:31
Techdose
Рет қаралды 135 М.
Missing Number - Blind 75 - Leetcode 268 - Python
12:11
NeetCode
Рет қаралды 122 М.
Find missing and repeating number
9:55
Techdose
Рет қаралды 46 М.
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 7 МЛН