Search⌘ K
AI Features

DIY: Wildcard Matching

Explore how to implement wildcard pattern matching in Python by handling patterns with ? and *. Understand how to match entire strings according to given wildcard rules and develop a function that returns if the pattern matches the input string. This lesson aids in mastering pattern matching for coding 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:

  • ?
...