Participate in Codex, Test Your Skills & Win BIG

Integer To Roman

Please Note:

Another question which belongs to the category of questions which are intentionally stated vaguely.
Expectation is that you will ask for correct clarification or you will state your assumptions before you start coding.

Given an integer A, convert it to a roman numeral, and return a string corresponding to its roman numeral version

Note : This question has a lot of scope of clarification from the interviewer. Please take a moment to think of all the needed clarifications and see the expected response using “See Expected Output”

For the purpose of this question, has very detailed explanations.

Input Format

The only argument given is integer A.

Output Format

Return a string denoting roman numeral version of A.


1 <= A <= 3999

For Example

Input 1:
    A = 5
Output 1:

Input 2:
    A = 14
Output 2:
Start solving Integer To Roman on Interview Code Editor
  • Hint 1
  • Solution Approach
  • Complete Solution


Click here to start solving coding interview questions