Exercises/#142 Wildcard Matching
#142

Wildcard Matching

Hard🧩 Dynamic Programming
145 XP

Problem

Implement wildcard pattern matching with '?' (any single character) and '' (any sequence including empty).

Examples

Input: s='adceb', p='*a*b'
Output: true

Input: s='acdcb', p='a*c?b'
Output: false
dynamic-programmingstring
AI Assistantβ€” powered by AI

Unlock hints progressively β€” start gentle, go deeper only if needed.

πŸ’‘

Level 1: Gentle Nudge

A subtle direction

πŸ—ΊοΈ

Level 2: Approach

The algorithm to use

πŸ”

Level 3: Detailed

Step-by-step guidance

142 / 150

Your Solution

⚑ JavaScript

to save progress and use AI features