https://github.com/mawrkus/kata-roman-numerals
The Roman Numerals Kata π±
https://github.com/mawrkus/kata-roman-numerals
Last synced: about 1 month ago
JSON representation
The Roman Numerals Kata π±
- Host: GitHub
- URL: https://github.com/mawrkus/kata-roman-numerals
- Owner: mawrkus
- Created: 2018-11-08T23:44:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-08T23:52:27.000Z (almost 7 years ago)
- Last Synced: 2025-03-08T21:40:54.151Z (7 months ago)
- Size: 48.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Roman Numerals Kata
Source: http://kata-log.rocks/roman-numerals-kata
## Your Task
Write a method String convert(int) that takes a number and converts it to the according String representation.
Examples:
```
1 β I
2 β II
3 β III
4 β IV
5 β V
9 β IX
21 β XXI
50 β L
100 β C
500 β D
1000 β M
```## Hint
This kata lures a lot of people to implement features in the order of the numbers. But do not forget that itβs sometimes easier to start with a general case and add exceptions later.