Roman Number to Integer
Difficulty: Easy
Acceptance: %
Points: 20.00
Given a string in Roman number format (s), your task is to convert it to an integer. Various symbols and their values are given below.
Note: I = 1, V = 5, X = 10, L = 50, C = 100, D = 500, M = 1000
Expected Time Complexity: O(n)
Expected Space Complexity: O(1)
Constraints: - 1<= roman number <=3999
- s[i] belongs to [I, V, X, L, C, D, M]
Companies: Amazon Microsoft Zoho
Please log in to access the Submissions tab, where you can review your progress and explore code submissions from other participants.
Please log in to access the Solution tab and view detailed answers and explanations.
Please log in to access the Discussion tab and join conversations with other participants.