标签:style blog http color java 使用 io strong
题目:
Implement regular expression matching with support for ‘.‘
and ‘*‘
.
‘.‘ Matches any single character. ‘*‘ Matches zero or more of the preceding element. The matching should cover the entire input string (not partial). The function prototype should be: bool isMatch(const char *s, const char *p) Some examples: isMatch("aa","a") → false isMatch("aa","aa") → true isMatch("aaa","aa") → false isMatch("aa", "a*") → true isMatch("aa", ".*") → true isMatch("ab", ".*") → true isMatch("aab", "c*a*b") → true
题解:
本文及代码引用自:http://harrifeng.github.io/algo/leetcode/regular-expression-matching.html
代码如下:
Regular Expression Matching leetcode java,布布扣,bubuko.com
Regular Expression Matching leetcode java
标签:style blog http color java 使用 io strong
原文地址:http://www.cnblogs.com/springfor/p/3893593.html