paint-brush
The ATM Problem: Why the Greedy Algorithm Isn't an Optimal Solutionby@justartem
6,525 reads
6,525 reads

The ATM Problem: Why the Greedy Algorithm Isn't an Optimal Solution

by Artem Maksimov4mMarch 2nd, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The ATM problem is a popular problem in FAANG interviews. It involves finding the minimum number of banknotes required to withdraw a certain sum of money from an ATM that contains banknotes of different denominations. In this article, we will explore the problem and its solution using the Greedy algorithm, as well as why the Greedy algorithm may not be suitable in all cases.
featured image - The ATM Problem: Why the Greedy Algorithm Isn't an Optimal Solution
Artem Maksimov HackerNoon profile picture
Artem Maksimov

Artem Maksimov

@justartem

Software Engineer at Meta

L O A D I N G
. . . comments & more!

About Author

Artem Maksimov HackerNoon profile picture
Artem Maksimov@justartem
Software Engineer at Meta

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite