摘要: Implement regular expression matching with support for '.' and '*'. 定位:困难题 题目给出两种匹配规则,即'.'能匹配任何字符,'*'可以将前面一个字符重复0到任意次。 此时我们将'*'与其前一个字符合看为一个单元考虑。存在以下情况 阅读全文
posted @ 2017-06-17 16:22 仰恩 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Determine whether an integer is a palindrome. Do this without extra space. 定位:简单题 题目要求判断给出的数字是否是回文数,并且要求不适用额外空间。我们不能使用其他数据类型过度处理,那从个位开始计算,每提高计算一位将原先的值 阅读全文
posted @ 2017-06-17 16:11 仰恩 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below 阅读全文
posted @ 2017-06-17 16:06 仰恩 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 Note:The input is assumed to be a 32-bit signed integer. Yo 阅读全文
posted @ 2017-06-17 15:55 仰恩 阅读(128) 评论(0) 推荐(0) 编辑