2015年4月11日
摘要: Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The... 阅读全文
posted @ 2015-04-11 20:07 NealCaffrey989 阅读(109) 评论(0) 推荐(0) 编辑
摘要: Determine whether an integer is a palindrome. Do this without extra space.看到题目第一想法是将数字倒过来相减,看是否为0,但是会超时。原因是大部分可能并不是,所以循环中间就退出循环了。目前这个程序是按最左位与最右位逐次比较。时... 阅读全文
posted @ 2015-04-11 19:58 NealCaffrey989 阅读(87) 评论(0) 推荐(0) 编辑