← 返回 meta 的题目列表Suffix Array Related Problem
类型:online_judge
Given a list of strings words and a list of target suffixes suffixes. Write a function to check whether each target suffix can be formed by concatenating one or more strings from words considering that strings in words can be used multiple times. Return a list of boolean values indicating if each target suffix can be formed.
Example
Input
['cat', 'dog', 'sand', 'and']
['catsand', 'dogsand']