This was a pretty easy straightforward array problem, I made it significantly harder than it had to be because I didn’t read the instructions :)
Solution Link: https://github.com/LaZeAsh/competitive-programming/tree/main/Leetcode/cpp/121-BestTimetoBuyandSellStock
Reflection
I should be able to do this type of problem quicker, this took too much time for such an easy problem. I will try to read the question and think before I jump straight to coding it up.