Available question text
Design an ATM with five fixed denominations (20, 50, 100, 200, 500) that supports depositing counts of each bill and withdrawing a given amount. For withdraw, greedily take as many of the largest available bills as possible (500→20) and return the counts used or [-1] (and make no change) if that greedy process cannot produce the exact amount.
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 2241. Design an ATM Machine
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source