Problem Description
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).
Return 0 / 1 ( 0 for false, 1 for true ) for this problem
isMatch("aa","a") → 0 isMatch("aa","aa") → 1 isMatch("aaa","aa") → 0 isMatch("aa", "a*") → 1 isMatch("aa", ".*") → 1 isMatch("ab", ".*") → 1 isMatch("aab", "c*a*b") → 1
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a question? Checkout Sample Codes for more details.