Strings

Integer to Roman

medium
Given an integer, convert it to a Roman numeral. Valid range: 1 to 3999. Example: `intToRoman(1994)` → `"MCMXCIV"`.
Hint steps(0/3 revealed)
  1. 1

    Complete previous step or reveal to unlock this hint.

  2. 2

    Complete previous step or reveal to unlock this hint.

  3. 3

    Complete previous step or reveal to unlock this hint.