Update array.ts

This commit is contained in:
Yudong Jin 2022-12-12 01:14:07 +08:00 committed by GitHub
parent 0b27c89479
commit 4ea5c5b9cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ function find(nums: number[], target: number): number {
return -1; return -1;
} }
/* Driver Codes*/ /* Driver Code */
/* 初始化数组 */ /* 初始化数组 */
let arr: number[] = new Array(5).fill(0); let arr: number[] = new Array(5).fill(0);
console.log('数组 arr =', arr); console.log('数组 arr =', arr);