Update array.ts

pull/88/head
Yudong Jin 2 years ago committed by GitHub
parent 0b27c89479
commit 4ea5c5b9cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);

Loading…
Cancel
Save