This video is a solution to Leet code 121, Best Time to Buy and Sell Stock. I explain the question and the best way to solve it 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!
Code: https://leetcode.com/problems/best-time-to-buy-and-sell-stock/discuss/852219/Python-Simple-Solution-Explained
More leetcode questions solved:
https://www.youtube.com/watch?v=O5yxoFS_diY&list=PLr9zbByiJa3Ua2AgTrdvot6AQ3b4CxWrF
Timestamps:
0:00 Question Explained
1:40 Solution Explained
6:01 Python Code
Gear used:
Mic: https://amzn.to/3awi3b6
Drawing pad: https://amzn.to/2O7PaaU