Wildcard Matching

Hard

📝 Description

Implement wildcard pattern matching with ? (any char) and * (any sequence)

Input Format

String and pattern

Output Format

true/false

Constraints

0 ≤ s.length, p.length ≤ 2000

🔍 Sample Input

"aa"
"a"
            

✅ Sample Output

false
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run