Available question text
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.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3259. Maximum Energy Boost From Two Drinks
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source