1class Solution:2 def stringMatching(self, words: List[str]) -> List[str]:3 ans = set()4 l = len(words)5 for i in range(l):6 for j in range(l):7 if (words[i] in words[j]) & (i != j):8 ans.add(words[i])9 return ans
WPM •0 •0
ACC •0 •0
TIME •0