Data structures · Recursion
A vending machine with only 2- and 5-cent coins has to know which amounts it can pay at all, and with how few coins.