Recall & Review
beginner
What is the main goal in the 'Buy and Sell Stocks' problem?
To find the maximum profit by choosing the best days to buy and sell stocks given their prices over time.
Click to reveal answer
beginner
In the 'Buy and Sell Stocks I' variant, how many transactions are allowed?
Only one transaction is allowed: buy once and sell once.
Click to reveal answer
intermediate
What does the 'Buy and Sell Stocks II' variant allow that the first variant does not?
It allows multiple transactions (buy and sell multiple times) to maximize profit.
Click to reveal answer
advanced
How does the 'Buy and Sell Stocks with Cooldown' variant change the problem?
After selling a stock, you must wait one day before buying again (cooldown period).
Click to reveal answer
advanced
What is the key difference in the 'Buy and Sell Stocks with Transaction Fee' variant?
Each transaction (buy + sell) incurs a fee that reduces the profit from that transaction.
Click to reveal answer
In the 'Buy and Sell Stocks I' problem, what is the best strategy to maximize profit?
✗ Incorrect
You want to buy at the lowest price and sell later at a higher price to maximize profit.
Which variant allows unlimited transactions to maximize profit?
✗ Incorrect
Buy and Sell Stocks II allows multiple transactions without restrictions.
What does the cooldown period mean in the stock trading problem?
✗ Incorrect
Cooldown means waiting one day after selling before you can buy again.
How does a transaction fee affect the profit calculation?
✗ Incorrect
Each transaction reduces profit by the fee amount.
Which approach is commonly used to solve 'Buy and Sell Stocks with Cooldown'?
✗ Incorrect
Dynamic programming helps track states with cooldown constraints.
Explain how to find the maximum profit when only one transaction is allowed.
Think about the lowest price before the current day.
You got /3 concepts.
Describe how cooldown affects buying and selling decisions in stock trading.
Consider what happens right after you sell a stock.
You got /3 concepts.