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 742398c commit 1343d41Copy full SHA for 1343d41
lesson_11/arrays_ts/src/lesson11.ts
@@ -3,7 +3,7 @@
3
* https://leetcode.com/problems/concatenation-of-array
4
*/
5
export function getConcatenation(nums: number[]): number[] {
6
- let combinedArr = nums.concat(nums);
+ const combinedArr = nums.concat(nums);
7
return combinedArr;
8
}
9
@@ -12,13 +12,13 @@ export function getConcatenation(nums: number[]): number[] {
12
* https://leetcode.com/problems/find-words-containing-character/
13
14
export function findWordsContaining(words: string[], x: string): number[] {
15
- let result: number[] = [];
+ const result: number[] = [];
16
17
for (let i = 0; i < words.length; i++) {
18
if (words[i].includes(x)) {
19
result.push(i);
20
21
22
23
- return result;
+ return result;
24
0 commit comments