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 b97a8ac commit 15bdb67Copy full SHA for 15bdb67
lesson_11/arrays_ts/src/lesson11.ts
@@ -11,7 +11,7 @@ export function getConcatenation(nums: number[]): number[] {
11
* https://leetcode.com/problems/find-words-containing-character/
12
*/
13
export function findWordsContaining(words: string[], x: string): number[] {
14
- let ans = [];
+ const ans = [];
15
for(let i = 0; i<words.length; i++){
16
if (words[i].includes(x)){
17
ans.push(i);
0 commit comments