摘要: Roman to IntegerGiven a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.Traverse given string, if next roman value is smaller than the previous one, just add it to result.If next roman value is larger than previous one, we need to do a minus. 1 class 阅读全文
posted @ 2013-10-23 11:30 昱铭 阅读(192) 评论(0) 推荐(0)