Skip to content

Commit 1343d41

Browse files
committed
feat: added lesson11.ts
1 parent 742398c commit 1343d41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lesson_11/arrays_ts/src/lesson11.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* https://leetcode.com/problems/concatenation-of-array
44
*/
55
export function getConcatenation(nums: number[]): number[] {
6-
let combinedArr = nums.concat(nums);
6+
const combinedArr = nums.concat(nums);
77
return combinedArr;
88
}
99

@@ -12,13 +12,13 @@ export function getConcatenation(nums: number[]): number[] {
1212
* https://leetcode.com/problems/find-words-containing-character/
1313
*/
1414
export function findWordsContaining(words: string[], x: string): number[] {
15-
let result: number[] = [];
15+
const result: number[] = [];
1616

1717
for (let i = 0; i < words.length; i++) {
1818
if (words[i].includes(x)) {
1919
result.push(i);
2020
}
2121
}
2222

23-
return result;
23+
return result;
2424
}

0 commit comments

Comments
 (0)