Aloha guys. We are going on about popular interview questions. Today we will solve a few problems with the sliding window approach.
Best Time To Buy and Sell Stock
Our first problem is taken from "LeetCode Algorithm Challenges: Best Time to Buy and Sell Stock."