githubEdit

Buy ans Sell Stock has many type of variations.

1. Buy and Sell Stock I -> Only 1 transaction is allowed. Codearrow-up-right

2. Buy and Sell Stock II -> Infinite transactions are allowed. Codearrow-up-right

3. Buy and Sell Stock III -> At most 2 transactions are allowed. Codearrow-up-right

4. Buy and Sell Stock IV -> At most k transactions are allowed. Codearrow-up-right

5. Buy and Sell Stock with Cooldown -> At most 1 transaction is allowed with a cooldown period of one day means you can't sell at index i and buy again at index i+1, but you can make as many transaction as possible. Codearrow-up-right

6. Buy ans Sell Stock with transaction fee Codearrow-up-right

7. Buy I stocks on ith day Codearrow-up-right

8. Buy Maximum Stocks if i stocks can be bought on i-th day Codearrow-up-right

9. Stock Span Problem Codearrow-up-right

Last updated