2828. Check if a String Is an Acronym of Words
Given an array of strings
wordsand a strings, determine ifsis an acronym of words.The string
sis considered an acronym ofwordsif it can be formed by concatenating the first character of each string inwordsin order. For example,"ab"can be formed from["apple", "banana"], but it can’t be formed from["bear", "aardvark"].Return
trueifsis an acronym ofwords, andfalseotherwise.
1 | class Solution { |