Best Time to Buy and Sell Stock
You are given an integer array prices where prices[i] represents the price of a stock on the iᵗʰ day. You want to maximize your profit by choosing one day to buy the stock and a different day in the future to sell it. Return the maximum profit you can achieve.If you cannot make any profit, […]