44. Wildcard Matching
problem description
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).Input:
s = "aa"
p = "a"
Output: false
Explanation: "a" does not match the entire string "aa".Input:
s = "aa"
p = "*"
Output: true
Explanation: '*' matches any sequence.algorithm thought
code
algorithm analysis
Last updated