Search⌘ K
AI Features

DIY: Wildcard Matching

Understand how to implement wildcard pattern matching where ? matches any single character and * matches any sequence. This lesson guides you through coding a function to determine if a given string matches a pattern fully, preparing you for algorithmic coding challenges in interviews.

Problem statement

You will be given an input string s and a pattern p. You will have to implement wildcard pattern matching with support for ? and * where:

  • ?
...