Maximum profit by buying and selling a share at most k times - GeeksforGeeks
In share trading, a buyer buys shares and sells on a future date. Given the stock price of n days, the trader is allowed to make at most k transactions, where a new transaction can only start after the previous transaction is complete, find out the maximum profit that a share trader could have made.Read full article from Maximum profit by buying and selling a share at most k times - GeeksforGeeks
No comments:
Post a Comment