← Questions

Roman numeral to integer

0
AppleCodingLast asked Jun 2026

Convert a Roman numeral string to an integer. Add each symbol's value, except subtract it when a smaller value comes right before a larger one (as in IV or CM). Discuss how you would validate malformed input.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding