We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4612eeb commit 4e7251fCopy full SHA for 4e7251f
Roman_Integer/SimpleSolution.py
@@ -57,4 +57,5 @@ def romanToInt(self, s):
57
sum = sum + current - 2 * previous #Update sum
58
else: #Condition-check: Else
59
sum += current #Update sum
60
- return sum
+ previous = current #Update previous to current
61
+ return sum #We'll return sum
0 commit comments