Integer to Roman Problem

Integer to Roman Problem — ExecCode Medium DSA Practice

Solve the Integer to Roman problem on ExecCode. Free online medium DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.

Problem description

Given an integer, convert it to a roman numeral using the standard symbols and subtractive forms (IV, IX, XL, XC, CD, CM).

Examples

Input num = 58; Output "LVIII"

Constraints

1 ≤ num ≤ 3999

Practice Integer to Roman free on ExecCode. Browse DSA problems, topic map, and placement guides.