👩🏫
👨💼
Meet Allison & Tim
Your AI coaches
Practice coding interviews out loud with real-time voice coaching. Your code actually runs.
Free · No sign up · Early access
1Maximum Profit with Cooldownmedium
Based onLeetCode
mediumGrind 75
Stock Trading with Cooldown
Also known as: Best Time to Buy and Sell Stock with Cooldown
This problem is a state-machine in disguise, and DP is how you keep it under control. Interviewers love it because it reveals your state-and-transition thinking and your edge-case discipline. Don't rush the code—spend your time nailing the state definition first.
Arrays & HashingDynamic Programming
👩🏫
👨💼
Meet Allison & Tim
Your AI coaches
Practice coding interviews out loud with real-time voice coaching. Your code actually runs.
Free · No sign up · Early access
1Maximum Profit with Cooldownmedium
Based onLeetCode
Get this problem sent to your inbox