Skip to content

Commit 32aa2c7

Browse files
committed
Time: 2 ms (52.59%), Space: 45 MB (59.58%) - LeetHub
1 parent 86435da commit 32aa2c7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
class Solution {
2+
public List<Integer> findWordsContaining(String[] words, char x) {
3+
ArrayList<Integer>map=new ArrayList<>();
4+
for(int i=0;i<words.length;i++){
5+
if(words[i].indexOf(x)!=-1){
6+
map.add(i);
7+
}
8+
}
9+
return map;
10+
}
11+
}

0 commit comments

Comments
 (0)