June 19, 2024

Find Maximum Profit

  You are given an integer array of prices where prices[i] is the price of a given stock on the ith day and an integer k. […]