You are given a string word consisting of lowercase English letters and an array of strings skeletons. Each skeleton has the same length as word and consists of lowercase English letters and the character '-', which marks a position that may be filled according to the matching rules below.
A skeleton matches word when both of the following conditions hold:
- At every non-dash position
i,skeleton[i]must equalword[i].
Ask AI Assistant

Ask AI Assistant
Ask me anything about this coding question!
Test Cases
Input
Output
Expected