Find the Repeating and the Missing Element | Love Babbar DSA Sheet | Leetcode | Amazon 🔥| Placement
Vložit
- čas přidán 17. 12. 2020
- #sorting and searching #competitiveprogramming #coding #dsa
Hey Guys in this video I have explained with code how we can solve the problem 'Find the repeating and the missing element'.
Roadmap for Dynamic Programming = • Complete Roadmap for D...
Great Strategy to solve DSA = • Great Strategy to solv...
String question Playlist = • Love Babbar DSA 450 Qu...
Array question Playlist = • Love Babbar DSA 450 Qu...
Binary Tree question Playlist = • Love Babbar DSA 450 Qu...
Dynamic Programming question Playlist = • Love Babbar DSA 450 Qu...
My Journey to 5 star at codechef = • My Journey to 5 Star a...
Love Babbar DSA Sheet : drive.google.com/file/d/1FMdN...
Hope you like it. Comment if you have any doubt
LIKE | SHARE | SUBSCRIBE
What an explanation! Loved it
it was difficult t follow where it started what actuall you did randomly picking index i had to see it 7 times to understand
Loved it. Found this explanation unique and amazing ❤️
your way of explanation is exellent,thankyou
unique and amazing explanation...thank you
Mast explain krte bhaiii!!!!!
what if we are not allowed to modify the array element ??
Then make a temporary array and initialise it with zeroes,traverse the array mark the visited values as negative or one in temporary array...if we got already marked index in temporary array than it is repeating element,now after this traverse the array and check if there is any index left with value zero than that will be missing element....t.c.-o(n)...but s.c.-o(n)
best explanation , thankyou
Loved it ... big fan apka
Amazing explanation bro 👍
Thank You for this Video !!
How u think like that..how I develop my logical thinking..
what an approch brother great
what a logical thinking!!!!! hats off
in the second for loop, we should have stored b = arr[i + 1] for the value, why did you store the index in it...?
to find the missing element
if i'm trying to do this question using 1 based indexing....It is giving me segmentation fault...Do u know why?
Nice explanation!
Bhai can we not optimize this because it takes n2 time complexity
I think we can use only one for loop or both operation perform in one for loop ......
bhayiya agar jaise array is [3,1,2,1] toh isme kaise cycle banaye?
thanks
I think we should use cycle sort
if(arr[abs(arr[i])-1]
arr[-1] won't happen because range always 1 to N. So arr[-1] will not appear at most arr[0] will come
pls make a video on kmp algo pls pls
agar elements 10 sa start hora to fir kasa nikala ga bhai
Time complexity O(N*N) hojaegi na 2 for loop lgae h jb
nahi bhai dono loop separate hai to complexity add hogi O(N)+O(N)
I have one qstn in this
Accha, tum Yogesh ho, Shaliesh, Vishesh, Akhilesh, Mithilesh, Ankesh and Durgesh kaha hai?
sirf 2 hi hai bro Yogesh and Shailesh
Sir please question ka pdf share kar digiye
drive.google.com/file/d/1FMdN_OCfOI0iAeDlqswCiC2DZzD4nPsb/view
You are making it too complicated bro