Search
⌘K

Leetcode 309. Best Time to Buy and Sell Stock with Cooldown

Given daily stock prices, maximize total profit with unlimited buy/sell transactions under the constraint that after you sell you must skip the next day (one-day cooldown). This is typically solved with a dynamic-programming/state-machine approach tracking states like holding, sold, and cooldown.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.