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 20b1302 commit da1c684Copy full SHA for da1c684
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 ans: number[] = [...nums, ...nums];
+ const ans: number[] = [...nums, ...nums];
7
return ans;
8
}
9
@@ -12,7 +12,7 @@ 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 output: number[] = [];
+ const output: number[] = [];
16
for (let i = 0; i < words.length; i++) {
17
if (words[i].includes(x)) {
18
output.push(i);
0 commit comments