Hacker Times
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
JJMcJ
on March 15, 2019
|
parent
|
context
|
favorite
| on:
Dynamic Programming for Technical Interviews
Coin changing - my understanding is that if each denomination of coin is at least twice that of the next smaller, then greedy is optimal. Note to self - see if you can prove it.
That is the case for current US coinage, 1, 5, 10, 25, 50, 100, cents.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
That is the case for current US coinage, 1, 5, 10, 25, 50, 100, cents.