Best Time to Buy and Sell Stock IV
Dec 14, 2025 · 2 min read · Problem You are given an integer array prices where prices[i] is the price of a given stock on the ith day, and an integer k. Find the maximum profit you can achieve. You may complete at most k transactions: i.e. you may buy at most k times and sell ...
Join discussion



