Match Strings (Amazon CN)
Match Strings (Amazon CN) is an Amazon interviews coding interview problem. Given two equal-length arrays, text and pat, each pat[i] is a pattern with exactly one wildcard '', where '' matches any sequence of lowercase letters. For each i, determine if pat[i] matches text[i] and return an array of "YES" or "NO". A clear interview question focused on simple pattern matching.
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Input Variables
Execution Result:
