Wildcard Pattern Matching
00:00
AmazonGoogle
Implement wildcard pattern matching where '?' matches any single char and '*' matches any sequence (including empty).
Examples
Input → s='aa', p='a'
Output → False
Input → s='aa', p='*'
Output → True
Input → s='cb', p='?a'
Output → False
Input → s='adceb', p='*a*b'
Output → True