You are given an array of strings words and a string chars.
A string in words is considered good if it can be formed using only the characters available in chars, where each character in chars may be used at most once per word.
Return the sum of the lengths of all good strings in words.
Constraints:
words.length
words[i].length, chars.length
words[i] and chars consist of lowercase English letters.
You are given an array of strings words and a string chars.
A string in words is considered good if it can be formed using only the characters available in chars, where each character in chars may be used at most once per word.
Return the sum of the lengths of all good strings in words.
Constraints:
words.length
words[i].length, chars.length
words[i] and chars consist of lowercase English letters.