Find the two non-repeating elements in an array of repeating elements | Bit Manipulation | DSA Sheet

preview_player
Показать описание
#bit #bitmanipulation #bitmasking #competitiveprogramming #coding #dsa

Hey, Guys in this video I have explained how we can solve the problem 'Find the two non-repeating elements in an array of repeating elements'.

--------------------------------------------------------------------------------

Unacademy Links--
Use my code "YOGESH" to access all FREE classes and get a 10% Discount on Paid Courses.

--------------------------------------------------------------------------------

Join our Telegram Channel for more Information

Follow us on Instagram:

Follow us on LinkedIn:

Hope you like it. Comment if you have any doubt

LIKE | SHARE | SUBSCRIBE

Time Stamps

0:00 Intro + Example
2:16 promo
3:46 Explanation + Code
Рекомендации по теме
Комментарии
Автор

bhai maza aagya thankyou... i recently started DSA sheet this videos is helpfull keep it up

anuraggulati
Автор

Thank you bhaiya ji 😊
Mein iss question mein bahut der se laga hua tha but logic build hi nhi hora tha

praveensingh
Автор

@CodeLibrary can you explain when we take array as 1, 2, 3, 2, 4 the output for this is coming 3 5 how

RUCHITAPANDIT-cvtl
Автор

i know java i have one doubt that while using Vector<int> ans will our space complexity be O(n) ? in solution we want O(1) ? Correct me if i am wrong!

AmanMishra-rgjd
Автор

Crystal clear explaination, thank you so much.

aadityasharma
Автор

what if both non repeating numbers are even example: 1, 1, 2, 3, 3, 4, 5, 5 will this code run for it?

ashutoshyadav
Автор

what if both the elements are even ?
or both the elements are odd ?
then how do we split ?

nikhillumesh
Автор

Bhai kuch kuch numbers pe ye sahi nhi run ho raha

pratapp.s.p.
Автор

at line 30you sort the elenment ? doesn't it takes TC nlogn?

AnkitMaddheshiya-ow
Автор

sir aapne odd number aur even number ko alg kar dene ko agar non repeating element dono odd ya even ho to usko thori na find out kar skate hain.

Manishkumar-wttf
Автор

can anyone please explain what is happening in line 17 and and how we get the formula xor & ~(xor-1) ?

SreejanjiVlogss
Автор

bhaiya rightmost bit xor&1 karke bhi toh nikali jaa shakti thi what is the catch in this

showsshorts
Автор

can anyone plz share the code for sorting approach

NikitaSingh-kzii
Автор

Bro, zoho ke level 2 Hai Mera 27 ko, zoho vale konse topics pr focus karte Hai?

official.frostburn
Автор

Bro please provide the code in python too.

anujprajapati
Автор

abhi bhi short hi bol rahe ho bhai, short == sort

tanaypatidar