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

  Рет қаралды 19,168

Nikhil Lohia

Nikhil Lohia

Күн бұрын

Пікірлер: 54
@AmeyaKherodkar
@AmeyaKherodkar 7 ай бұрын
One of the best videos for this problem and logic explanation. Kudos ✌
@ce132_sonugupta9
@ce132_sonugupta9 6 ай бұрын
xor solution explanation is nice🙃🙃
@nibeditadas4182
@nibeditadas4182 3 ай бұрын
Great explanation , need more such videos on different Leet code problems.
@raju_bugude
@raju_bugude 2 ай бұрын
best expalnation so far in youtub regarding this topic/problem.
@AnyVine
@AnyVine 2 ай бұрын
Xor pehli baar dhang se samajh aaya h , thanks brother 😊😊
@walkwithAziz2024
@walkwithAziz2024 4 ай бұрын
Thanks excellent explanation Xor how use in this solution
@businessmotivationspot
@businessmotivationspot Жыл бұрын
Hey man! your explanation skills are excellent.
@nikoo28
@nikoo28 Жыл бұрын
Glad you like them!
@arundhuti4101
@arundhuti4101 3 ай бұрын
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 2 ай бұрын
Yeah it will definitely work but we need optimized code...
@vishnulavudya3160
@vishnulavudya3160 5 ай бұрын
the best explanation
@AvinashSingh-tr5vt
@AvinashSingh-tr5vt Жыл бұрын
Thank you very much for the wonderful explanation 😊
@priyakoli5572
@priyakoli5572 5 ай бұрын
You explained so well then others
@everyontech2716
@everyontech2716 Жыл бұрын
This is one of the best explained video for this problem
@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
@zillboy
@zillboy 7 ай бұрын
Amazing explanation, thanks 👍
@rachitkatariya
@rachitkatariya 4 ай бұрын
Bahut accha padhaye ho bhaiyaa aap.🫂❤
@HistoryHouse45
@HistoryHouse45 Жыл бұрын
sir can you make video on another part of this problem(repeat and missing number)
@nikoo28
@nikoo28 Жыл бұрын
let me check it out.. :)
@sarveshkuthe6283
@sarveshkuthe6283 6 ай бұрын
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 6 ай бұрын
Sir your explanation is awesome ♥♥♥
@nobelcoding
@nobelcoding 2 ай бұрын
Very nice explanations
@anudey8496
@anudey8496 Жыл бұрын
like your solution! thanks
@jjoelthomas
@jjoelthomas 8 ай бұрын
Great explanation!!!
@riya_1723
@riya_1723 5 ай бұрын
The best one 😊
@gd24644
@gd24644 5 ай бұрын
thank you so much
@mikedelta658
@mikedelta658 9 ай бұрын
Thank you.
@pavankumarpadamati8606
@pavankumarpadamati8606 9 ай бұрын
good explanation bro..
@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 :)
@ghub1971
@ghub1971 7 ай бұрын
thank you sir
@souleymen971
@souleymen971 Жыл бұрын
Thank you you help me so much
@nikoo28
@nikoo28 Жыл бұрын
I'm so glad!
@jameshuddle4712
@jameshuddle4712 7 ай бұрын
Nice! The xor really capped it. Thank you! (I couldn't resist...) missing = arr.reduce((t,v,i) => t ^ v ^ i, arr.length);
@klyucherov.e
@klyucherov.e Жыл бұрын
Спасибо индусу за туториал 👍
@nikoo28
@nikoo28 Жыл бұрын
you are welcome
@keshav9541
@keshav9541 5 ай бұрын
great bro
@Mosesdaniel77
@Mosesdaniel77 2 ай бұрын
🎉Good
@priyabratapadhi2421
@priyabratapadhi2421 4 ай бұрын
how this "xor " solution can't pass test case
@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.
@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
@harikumarv5009
@harikumarv5009 7 ай бұрын
awsome brother🥸
@abhasthakur36
@abhasthakur36 6 ай бұрын
Bruteforce ka code send krdo
@nikoo28
@nikoo28 5 ай бұрын
You don’t need the code for brute force method
@chitra_13
@chitra_13 10 ай бұрын
0,1 ka kese niklega iss approch se
@nikoo28
@nikoo28 9 ай бұрын
What do you mean?? Please elaborate a little
@demonders5486
@demonders5486 8 ай бұрын
😅😅😅😅😅😅😅
@RameshGaridapuri
@RameshGaridapuri 4 ай бұрын
// 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(" "); } }
Un coup venu de l’espace 😂😂😂
00:19
Nicocapone
Рет қаралды 10 МЛН
Стойкость Фёдора поразила всех!
00:58
МИНУС БАЛЛ
Рет қаралды 7 МЛН
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 452 М.
Making an Algorithm Faster
30:08
NeetCodeIO
Рет қаралды 119 М.
Viral Video of a Man's Crazy Job Interview
16:02
Darryl Vega TV
Рет қаралды 1,3 МЛН
If Your Tech Job is Comfortable, You're in Danger
20:57
Thriving Technologist
Рет қаралды 16 М.
BS-16. Kth Missing Positive Number | Maths + Binary Search
22:52
take U forward
Рет қаралды 147 М.
Un coup venu de l’espace 😂😂😂
00:19
Nicocapone
Рет қаралды 10 МЛН