From: James Gray Date: 2008-01-26T03:06:48+09:00 Subject: Re: [QUIZ] Making Change (#154) On Jan 25, 2008, at 10:55 AM, Warren Brown wrote: > James, > >> What if the coins were 10, 7, and 1 cent pieces though >> and we wanted to make 14 cents change? We would >> probably want to do: >> >> >> make_change(14, [10, 7, 1]) >> => [7, 7] >> ... >> Your function should always return the optimal change >> with optimal being the least amount of coins involved. > > Do you have a preference for breaking ties? For example, which > would you prefer for make_change(21, [10, 7, 1]): [7, 7, 7] or [10, > 10, > 1]? No preference. Either is a valid answer. James Edward Gray II