Three Sum Closest (LeetCode 16) | Full Solution with visual explanation | Interview Essential

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

Chapters:
00:00 - Intro
00:50 - Problem Statement and Description
03:20 - Brute Force Solution
03:59 - Translation to Three Sum
05:16 - Efficient Solution
08:23 - Dry-run of Code
11:12 - Final Thoughts

📚 Links to topics I talk about in the video:

📖 Reference Books:

🎥 My Recording Gear:

💻 Get Social 💻

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

Great explaination bro however you have a typo in space complexity i guess as it will be O(1)

hoddybhaba
Автор

Your way to explain the approach and code is phenomenal. Thanks you Sir for providing great content 😊❤❤

vipulaggarwal
Автор

I watched your house robber I problem explanation video first, and immediately fell in love with the way you explain the solutions. Your voice is soothing to hear as well and every word is clearly pronounced. I've had issues following other videos due to terrible audio quality and a monotonous tone of explanation.

Thank you for making my life a bit easier with your solutions.

Please solve all the problems from Sean Prashad's list 🙏

ghanashrim
Автор

You're Such an understandable and clear explanation delivering instructor...Thank you.!!!

sureshkannan
Автор

You are explaining the problem clear and crisp.. keep doing the same... Thanks for sharing these videos

pavanreddy
Автор

Great Explanation bro👌👌
I like your teaching

ujjwalsingh
Автор

I was thinking of the same approach but couldn't find that last piece but after watching this video i got it, Thankyou this video was very helpful !

Pankaj_singh
Автор

Awesome as usual ! Can you please make a video which sort of gives a general approach to solve questions involving two pointers ?

sanand
Автор

very good explaination sir. thanks for your contribution

geetikapathak
Автор

If we have very large integers as elements in our array, the addition to calculate the sum could give us an integer overflow. How do you suggest avoiding this scenario? Calculate the difference first?

beagleman
Автор

Why don't you upload brute force approach too with a code we have give answer in steps during an interview we can't just directly jump to optimal approach

fatherofcommunists
Автор

if sum is less than the target, we have 2 options: increment left or decrement right. You have chosen to increment left. I can choose decrement right. Are the equivalent ?

subhendumahanta
welcome to shbcf.ru