NewThe Learning module is now liveSee what's new

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:

  1. At every non-dash position i, skeleton[i] must equal word[i].
Test Cases
Input
Output
Expected