All problems‎ > ‎

Roman number conversion

For example, the roman number XVII is means 17. All rules can be found on wikipedia: Roman numerals.

You can go both ways, either int to Roman or Roman to int.

This problem is good for demonstrating the incremental development of an algorithm; it requires a couple of key insights, one around the use of a table, and one around thinking about the order of the tests.