Hello guys, cheers to another piece of learning. Today I talked about the "Two Sum" problem which is the second in Neetcode 150 list. It is one of the most asked questions in interviews and has some interesting ways to solve it.
In the above video, I showed all the different logics with which the problem can be solved and also the codes to those logics in Python. Let me know if you got a hold of the logic?
HashMaps and HashSets video - • Hashsets and HashMaps ...
Two Pointer Algorithm - • 2 - Pointer Algorithm ...
Link to Neetcode 150 - neetcode.io/practice
Link to 2 Sum Problem - leetcode.com/problems/two-sum...
Regular updates from me on Discord, Insta and Telegram. I post job notifications of telegram and discord
Insta - / bharathh_chandraa
Telegram - t.me/thebharathchandra
Discord - / discord
00:00 - Introduction
00:23 - Problem Statement
01:50 - Brute Force Algorithm Explanation
04:32 - Brute Force Code
05:25 - Using 2 - Pointer Algorithm
11:18 - Code Using 2 - Pointer
12:33 - Using HashMap Explanation
19:12 - Using HashMap Code
20:21 - Conclusion
14 июл 2024