LeetCode编程练习 - Roman to Integer学习心得

题目:         Given a roman numeral, convert it to an integer.         Input is guaranteed to be within the range from 1 to 3999.     给定一个罗马数字,将其转换为整数,输入保证在从1到3999之间。 思路:    查看罗马数字表,I对应1,V对应5,X对应10,L对应5
相关文章
相关标签/搜索