# the price of a given stock on day i. # Design an algorithm to find the maximum profit. # You may complete at most k transactions. max_buy = [float("-inf") for _ in xrange(k + 1)] max_sell = [0 for _ ...