Search⌘ K
AI Features

DIY: Wildcard Matching

Explore how to implement wildcard pattern matching using ? and * in Scala. Understand how to match patterns covering entire input strings, and develop a solution to this common coding interview question to improve your algorithm skills.

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:

...