3 Sum | Brute - Better - Optimal with Codes
take U forward take U forward
687K subscribers
324,779 views
10K

 Published On Apr 16, 2023

Problem Link: https://bit.ly/3X34JSI

Notes/C++/Java/Python codes:

We have solved the problem, and we have gone from brute force and ended with the most optimal solution. Every approach's code has been written in the video itself. Also, we have covered the algorithm with intuition.

Full Course: https://bit.ly/tufA2ZYt

You can follow me across social media, all my handles are below:

Linkedin/Instagram/Telegram: https://linktr.ee/takeUforward

0:00 Introduction of Course
00:41 Problem Statement
02:56 Brute force approach (Using 3-pointer)
04:55 Pseudocode
07:36 Code
09:27 Complexity
10:26 Better approach (Using Hashing)
12:23 Dry run
18:09 Code
20:15 Complexity
22:20 Optimal approach (Using 2-pointer)
23:20 2-Pointer Technique
31:50 Code
36:41 Complexity

show more

Share/Embed