According to this http://articles.leetcode.com/2011/09/regular-expression-matching.html, isMatch(“aab”, “cab”) → true. That makes sense, because C* means 0 or more characters of c. So that should return true but the test code is returning false. Even the question says it's false.
true for me. Also the question description shows that
isMatch("aab", "c*a*b") → true. Are you sure you are reading the correct example?
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.