摘要: Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999与罗马字符转数字类似,注意按级处理。string intToRoman(int num){... 阅读全文
posted @ 2015-04-22 22:10 BestWangJie 阅读(123) 评论(0) 推荐(0) 编辑
摘要: Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.从低位开始累加,注意一下像IV和 VI DC和CD的处理class Solution {... 阅读全文
posted @ 2015-04-22 20:22 BestWangJie 阅读(127) 评论(0) 推荐(0) 编辑
摘要: '.' Matches any single character.'*' Matches zero or more of the preceding element.The matching should cover the entire input string (not partial).The 阅读全文
posted @ 2015-04-22 19:17 BestWangJie 阅读(151) 评论(0) 推荐(0) 编辑