10 Regular Expression Matching
1. Question
'.' Matches any single character.
'*' Matches zero or more of the preceding element.Input:
s = "aa"
p = "a"
Output:
false
Explanation:
"a" does not match the entire string "aa".2. Implementation
3. Time & Space Complexity
Last updated