Back
Roman to Integer
Given a roman numeral, convert it to an integer.
Java
Description
Solution
My Code
Roman to Integer
Given a roman numeral, convert it to an integer.
Example 1:
Input:
"III"
Output:
3
Viz
Tests
Run
Input
"III"
"LVIII"
"MCMXCIV"
Custom
"III"
arr =
"III"
Convert roman
s
i
I
0
I
1
I
2
Variables
Variable
Value
s
III
Depth
Function Call
Stack empty
0/4
0.5x
1x
2x
4x