James Gray wrote: > On Jan 25, 2008, at 10:55 AM, Warren Brown wrote: > >>> 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 I don't know...I hate pennies. IMHO, any answer that minimizes the number of pennies should win out. -- Posted via http://www.ruby-forum.com/.