Integer to Roman

Medium
Strings String Math Hash Table

Convert integer to Roman numeral string.

Constraints

1 ≤ num ≤ 3999

Examples

Example 1:
Input: 3
Output: III
Example 2:
Input: 58
Output: LVIII
Example 3:
Input: 1994
Output: MCMXCIV
▲ Console

Install Talent Arabia

Get instant access to jobs and career tools on your device.