We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2ac493 commit b0fadbdCopy full SHA for b0fadbd
solution/013.Roman to Integer/Solution2.py
@@ -1,3 +1,4 @@
1
+# 80ms with python2
2
class Solution(object):
3
def romanToInt(self, s):
4
dict = {'M':1000, 'D':500, 'C':100, 'L':50, 'X':10, 'V':5, 'I':1} #对应关系存在一个字典里
0 commit comments