13. Roman to Integer
BASIC Character
I
V
X
L
C
D
M
Arabic numerals
1
5
10
50
100
500
1000
the rule is complex,but in this condition. It can be tell as:
we start from the end of String.
if the char before the current char we are reading: add it
if not: subtract it。Last updated
Was this helpful?