You are given an array of integers representing the daily prices of a stock, where the
𝑖
i-th element is the price of the stock on day
𝑖
i. You want to maximize your profit by choosing a single day to buy one stock and a different day in the future to sell that stock.
Write a function that calculates the maximum profit you can achieve. If no profit is possible, return