Roman Numerals to Integers

Given a Roman numeral, convert it to an integer.

Statement

Given a Roman numeral, our task is to convert it to an integer.

Roman numerals are represented by seven different symbols:

“I”, “V”, “X”, “L”, “C”, “D”, and “M”.

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.