We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce7e54b commit 65cc534Copy full SHA for 65cc534
2501-3000/2942.py
@@ -0,0 +1,7 @@
1
+class Solution:
2
+ def findWordsContaining(self, words: List[str], x: str) -> List[int]:
3
+ res = []
4
+ for i in range(len(words)):
5
+ if x in words[i]:
6
+ res.append(i)
7
+ return res
0 commit comments