3407. Substring Matching Pattern
You are given a string
s
and a pattern stringp
, wherep
contains exactly one'*'
character.The
'*'
inp
can be replaced with any sequence of zero or more characters.Return
true
ifp
can be made a substring ofs
, andfalse
otherwise.A substring is a contiguous non-empty sequence of characters within a string.
go
1 | func pi(s string) []int { |