Skip to main content
Admissions guidance, study banks, and career tools — get started on Shalyam

Roman to Integer

Convert a Roman numeral to an integer. Subtractive pairs such as IV, IX, XL, XC, CD and CM are used.

Constraints

1 <= len(s) <= 15 The numeral represents a value from 1 to 3999

Discussion

No discussions yet.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.