Most teachers introduce solutions as fully-formed recipes. But in doing so, they totally miss how solutions are DISCOVERED. In painstaking detail, I go through this crucial missing piece and demonstrate how to methodically attack problems from every possible angle.
My teaching: https://watchandcode.com
Two sum problem: https://leetcode.com/problems/two-sum/
My video for Two Sum II (the sequel to this problem):
• Two Sum II - LeetCode 167 - Python (w...
0:00 Two sum problem statement
0:19 Initial thought process
1:12 Brute-force implementation & analysis
3:00 Optimizing our initial approach
7:25 Implementing a faster algorithm
7:47 One-pass?
9:52 Awkward code
12:00 The most important part
Смотрите видео Two Sum | LeetCode 1 | Python | Easy онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Gordon Zhu 23 Май 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,551 раз и оно понравилось 84 людям.