Fading Coder

One Final Commit for the Last Sprint

Dynamic Programming for Stock Trading with at Most K Transactions

We tackle two classic stock trading problems: at most two transactions (LeetCode 123) and at most k transactions (LeetCode 188). Both problems prohibit holding more than one share at a time: you must sell before buying again. Problem 123: Best Time to Buy and Sell Stock III Given an array prices, fi...