Find common elements In 3 sorted arrays | Love Babbar DSA Sheet Q19 | Arrays

preview_player
Показать описание
✅ Useful Links

SUBSCRIBE AND HIT BELL ICON TO CHECK MORE OF MY CONTENT

Find common elements In 3 sorted arrays | Love Babbar DSA Sheet Q19 | Arrays

𝐌𝐔𝐒𝐈𝐂 𝐂𝐑𝐄𝐃𝐈𝐓
Track: Julius Dreisig & Zeus X Crona - Invisible [NCS Release]
Music provided by NoCopyrightSounds.

Track: Axollo - Silence (ft. Josh Bogert) [NCS Release]
Music provided by NoCopyrightSounds.
Рекомендации по теме
Комментарии
Автор

Awesome bhaiya...Please continue from now on daily

hrithikrudra
Автор

Thanks Bhai. Best and easy solution. 🔥

syno.nymous
Автор

Can we change the condition in the while loop from && to || as we need to find common elements in all 3 arrays and once we reach the end of any of them it is done

kacp
Автор

i wrote the same approach exactly and faced the same issue moreover skipping duplicate elements wont work with negative elements

kartiksaini
Автор

Sir the code for handling duplicates using while loop method is not working.

S__DhruvTrehan
Автор

bhai problem ka link bhi description mai add kre toh bhoth madad hogi

jsuryakt
Автор

the solution of bf will not work
like what if i got a element 2 times in 2nd array then count is 2 in map and then it becomes 3 when we traverse in 3rd array
but it is not present in 1st array
hence its not right approach

deepanshupant
Автор

if(a[i]==b[j] && b[j]==c[k]) {
if(res.size()==0) {

}else {
{


}
i++;j++;k++;
continue;
}
Hi Prakash, can we try this in first if loop ?

sagardash