Search⌘ K
AI Features

DIY: Wildcard Matching

Explore how to implement a wildcard matching algorithm in C++ where the pattern supports ? for any single character and * for any sequence of characters. Learn to create a function that returns true if the pattern fully matches the input string and false otherwise. This lesson helps you understand pattern matching within operating system concepts.

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 ...