1
class 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

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0