S
All challenges
Practice
Home
Blog
Practice
Examples
Feedback
Integer to Roman
00:00
Start
00:00
Sign in
Problem
Hints
3
Solution
History
Medium
String
Greedy
Math
Amazon
Convert an integer (1-3999) to a Roman numeral string.
Examples
Example 1
Input →
3
Output →
'III'
Example 2
Input →
58
Output →
'LVIII'
Example 3
Input →
1994
Output →
'MCMXCIV'
JavaScript
Python
Java (Coming soon)
C (Coming soon)
C++ (Coming soon)
Reset
Run
Submit
Cases
Results