We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide solution for problem no. 12 on Leetcode Integer to Roman: https://leetcode.com/problems/integer-to-roman/
The text was updated successfully, but these errors were encountered:
'''def intToRoman(self, num: int) -> str: mem = [[1000, 'M'], [900, 'CM'], [500, 'D'], [400, 'CD'], [100, 'C'], [90, 'XC'], [50, 'L'], [40, 'XL'], [10, 'X'], [9, 'IX'], [5, 'V'], [4, 'IV'], [1, 'I']] ret = "" for k in range(len(mem)): while num >= mem[k][0]: num -= mem[k][0] ret += mem[k][1] return ret'''
code of above problem
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Provide solution for problem no. 12 on Leetcode
Integer to Roman: https://leetcode.com/problems/integer-to-roman/
The text was updated successfully, but these errors were encountered: