Problem bank

Problem 74 of 333HardCodingP074

Max profit with k transactions

  1. Given a price series, find the max profit using at most kk buy-sell transactions (cannot hold >1> 1 share at once). O(nk)O(nk).