I recently had some spare time and re-visited my first ever uni assignment. The problem it’s trying to solve is easy, given any amount of money in cents, figure out the minimium number of coins required. No need to say, the little Java program I wrote was crazily bad. So I rewrote it again in Ruby.
And here’s my solution after over 10 years of programming practice :)
My Java version can be found here under the comments section.