Search
⌘K
Get Premium
Leetcode 860. Lemonade Change
Simulate the queue and use a greedy approach with counters for $5 and $10 bills to determine if you can give correct change to each customer (who pays only with $5, $10, or $20) starting with no change.
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.