309. Best Time to Buy and Sell Stock with Cooldown


buy, sell, cooldown
Read more ⟶

714. Best Time to Buy and Sell Stock with Transaction Fee


you only want to complete a transaction when the profit exceeds the transaction fee
Read more ⟶

121. Best Time to Buy and Sell Stock


find the maximum difference between two numbers in the array
Read more ⟶

122. Best Time to Buy and Sell Stock II


whenever `prices[i]` is greater than `prices[i - 1]`, we can consider it as a profit-making
Read more ⟶