← 返回 linkedin 的题目列表LeetCode 44: Wildcard Matching
类型:online_judge
linkedin
Implement an algorithm to match a string pattern that includes wildcards '?' and ''. '?' can match any single character, and '' can match any sequence of characters (including the empty sequence). You are given two input strings; one as the string to be matched, and the other as the pattern. Return whether they match.
Example
Input
s = 'abc', p = '*abc'