|
From: Todd N. <osx...@ya...> - 2005-03-09 18:18:51
|
I have started to as an exercise, partaking in the Ruby Quiz. Held each week, this quiz challanges the mind of the programmer with trivial but fun exercises and solutions. This week is the conversion of Decimal to Roman and Roman to Decimal numbers. http://sensetalk.dyndns.org/examples/quiz/ The link above is my entry in solution for ST. I hope you can find the handlers in this useful. I have tested it extensively and found no bugs. The functions toRoman() and fromRoman() produce named output, and take as input the opposite. Let me know what you think! Todd Nathan __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ |