Two Sum | LeetCode 1 | Theory + Python code

preview_player
Показать описание
This video is a solution to LeetCode 1, Two Sum. I explain the question, go over the logic / theory behind solving the question and then solve it using Python.

Comment below if you have a better solution to this problem!

Let me know if you have any feedback and don't forget to subscribe for more videos!

Time stamps:
0:00 Question explained + brute force solution
1:08 Hash map solution explained
5:39 Python code

Leetcode Data Structure I playlist:

More leetcode questions solved:
Рекомендации по теме
Комментарии
Автор

If possible make a separate video on 4 sum problem too!

crosswalker
Автор

what if i have other pairs that sum upto the target

nthonyrajukondaveeti
Автор

Your explanations are like cocain, kabhi zyaada nahi lagta and my father beats me up after consumption

UditAmin
join shbcf.ru