Leetcode 3407. Substring Matching Pattern
Given string s and pattern p containing exactly one '*' that can match any (possibly empty) sequence, determine whether p can be turned into a substring of s by replacing '*' appropriately. Effectively, check if s contains a contiguous segment whose prefix and suffix match the parts of p before and after the '*' (with any middle content allowed).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.