3 SUM - (Amazon, Meta, Google) : Explanation ➕ Live Coding 🧑🏻‍💻👩🏻‍💻

preview_player
Показать описание
In this video, we will see another popular Question "3-SUM". This will be solved keeping the foundation of "2-SUM" so that you can easily relate and understand.

Problem Name : 3-Sum
Company Tags : Amazon, Facebook, Google

Company Tags 😱🤯 : Amazon, Facebook (Meta), Google

Рекомендации по теме
Комментарии
Автор

Wanted to see your approach to this problem...literally the best solution for the 3-Sum problem present on YouTube!
Kudos!

password
Автор

Share this channel with anyone who needs genuine help with building strong logic. As a working professional, I regret not finding this channel earlier in my journey, but better late than never! With 3 years of experience, I still find it incredibly valuable. Thanks, MIK!

shikharai-tlvb
Автор

Kuch aur search kiya tha kuch aur aagaya but dekhne ke baad ye bhi intresting lag raha hai.

coolsai
Автор

I'm glad I found you during my DSA journey. Thanks for everything!

amararbat
Автор

This is by far the best solution i have seen on You tube Thank you for explaining Medium level ka question lga hi nhi aapke explanation k wjh se thank you Highly Appreciate your efforts

shashankshandilya
Автор

Hello mik sir, you r helping me to understand dsa concepts, thank you so much sir, god bless you❤

bhagirathmakwana
Автор

This was the best approach for this problem. Thanks for this explanation! Such a great channel.

wakeuppeggy
Автор

seriously i got so much help because of you to how to think for code and urs approaches are very awesome thanks for giving me such type of knowledge

NitinSingh-tubm
Автор

Was not able to solve and understand intuitions of solutions available already Today and Felt very low .
Hands down to best solution 🙏

rv
Автор

Assalamualaikum Brother,
Dil se Salam hai aise Explaination aur Explain karne wale pe ❤

sharcodes
Автор

Bhaiya apke itne ache explanation ki wajah se 4SUM wala khud kar diya maine
Thank you bhaiya🥰

vinayjoshi
Автор

Thank you bhaiya for explaining the approach so deeply. I have one question regarding the input array below:

-4, -1, -1, 0, 0, 1, 2, 2

In this in the first step we assume that the n1 is -4 and -n1 will be -(-4) or 4. Now we need to find number n2 and n3 which adds up to 4.

Starting from i at 1 and j at 7, we first increment the i as value at i + 1 is same as value at i and similarly we decrement the j as value at j - 1 is equal to value at j.

After that we continue wit this approach and updating the variables i and j until they cross. My question is that {-4, 2, 2} can be one of the elements of the output array. I mean it clearly is as the triplet sum is 0, but following the approach for this as briefly discussed above, value at i will never reach the value 2 in this case.

Could you or anyone please explain if I missed something here?

ashwin_anand_dev
Автор

3 sum is ❤️. Got to learn a lot from it.

xiaoshen
Автор

Bhai !! what an explaination ! fantastic

arambh-gaur
Автор

sir, i don't have words to say thankyou for all the videos you have uploaded, you are really a gem trust me

yashthakur
Автор

The way u explain each question feels like every dsa question is just a cupcake 😭😭

khushipandey
Автор

thank you bhaiii, thank you soo much for your all efforts

BalkrishnaPatki
Автор

nice i dont usually comment but hats off

ahmadfaizan
Автор

You point all the valuable, plese make more playlist, you are op

ManasNandMohan
Автор

while fixing a particular number why dont we consider the umber on left side

KishanSingh-vcre