qiyuangong/leetcode

`TypeError` in Q12 Integer to Roman

lowspace opened this issue · 2 comments

TypeError: 'float' object cannot be interpreted as an integer

for j in range(k):

To correct this error, try for j in range(int(k)):.

Thank you @lowspace !
That's my fault. My previous solution is for Python2, in Python3 it will raise TypeError.

Have change to Python3 :)

Issue closed