Skip to content

Commit f32c29e

Browse files
committed
Time: 600 ms (23.08%), Space: 14.5 MB (92.31%) - LeetHub
1 parent 4079e69 commit f32c29e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class Solution {
2+
func countConsistentStrings(_ allowed: String, _ words: [String]) -> Int {
3+
let mySet = Set(allowed)
4+
return words.filter { Set($0).isSubset(of: mySet) }.count
5+
}
6+
}

0 commit comments

Comments
 (0)