names and a pattern string pattern. A name fits the pattern if it can be obtained from pattern by inserting only **lowercase** English letters anywhere (inserting nothing is allowed too).
In other words, every letter of the pattern must appear in the name in the same order, and every other letter of the name must be lowercase.
Return a list of booleans whose i-th element is True if names[i] fits the pattern and False otherwise.names=['GetUserName', 'GetUser', 'GoUpNow', 'getUserName'], pattern='GUN' → [True, False, True, False]
"GetUserName" and "GoUpNow" come from "GUN" by inserting lowercase letters. "GetUser" lacks the N, and "getUserName" has no capital G.
names=['ReadFile', 'ReadFileSync', 'RedFox'], pattern='ReFi' → [True, False, False]
"ReadFileSync" has an extra capital S, which cannot be inserted. "RedFox" has no i after the F.
names[i] and pattern consist of lowercase and uppercase English lettersnames=['GetUserName', 'GetUser', 'GoUpNow', 'getUserName'], pattern='GUN'
[True, False, True, False]
Run checks the first 3 tests in your browser. Submit checks all 105 tests on the server, hidden ones included.