Search⌘ K
AI Features

DIY: Wildcard Matching

Learn to implement wildcard matching by writing a function that supports ? for any single character and * for any sequence of characters. Understand how to check if an input string fully matches a given pattern, applying this to solve real coding interview problems in Swift.

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:

  • ?
...