Update array.ts
This commit is contained in:
parent
0b27c89479
commit
4ea5c5b9cb
@ -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…
Reference in New Issue
Block a user