Skip to content

Commit 4e7251f

Browse files
committed
Modifying Simple Solution - Problem - 13 - Roman Integer
1 parent 4612eeb commit 4e7251f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Roman_Integer/SimpleSolution.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,5 @@ def romanToInt(self, s):
5757
sum = sum + current - 2 * previous #Update sum
5858
else: #Condition-check: Else
5959
sum += current #Update sum
60-
return sum
60+
previous = current #Update previous to current
61+
return sum #We'll return sum

0 commit comments

Comments
 (0)