Search
⌘K
Get Premium
Leetcode 3259. Maximum Energy Boost From Two Drinks
Choose one drink per hour to maximize total energy over n hours, where drinking A or B yields the given hourly rewards but switching drinks enforces a mandatory one-hour cooldown with zero reward. This is a DP/optimization problem similar to the "stock trading with cooldown" pattern, tracking choices and cooldowns to maximize the sum.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.