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 fbcd463 commit 672565fCopy full SHA for 672565f
lesson_11/arrays_ts/src/lesson11.ts
@@ -1,6 +1,6 @@
1
export function getConcatenation(nums: number[]): number[] {
2
- let n: number = nums.length;
3
- let ans: number[] = new Array(2*n);
+ const n: number = nums.length;
+ const ans: number[] = new Array(2*n);
4
5
for(let i = 0; i < n; i++){
6
ans[i] = nums[i];
@@ -11,7 +11,7 @@ export function getConcatenation(nums: number[]): number[] {
11
}
12
13
export function findWordsContaining(words: string[], x: string): number[] {
14
- let indices: number[] = [];
+ const indices: number[] = [];
15
16
for (let i = 0; i < words.length; i++){
17
if(words[i].indexOf(x) >= 0){
0 commit comments