Hey coder. Let's start with a new question, "Wildcard Pattern Matching".
We want you to go through the problem first to understand its outline.
Important Links : Problem Link, Solution Video
- You are given two strings s1 and s2 where s1 represents a text and s2 represents a wildcard pattern.
- You have to print 'true' if the wildcard pattern is matched with the given text, otherwise print 'false'.
- The wildcard pattern can include the characters '?' and '*'
'?' - matches any single character
'*' - matches any sequence of characters (including the empty sequence).
Let s1= "baaabab" and s2= "ba*a?".
We let the value of '*' be "aab" and value of '?' be 'b'. According to our assignment, the text and the string match each other.