Update TypeScript style (Chapter of Array and Linkedlist)

This commit is contained in:
justin 2022-12-12 00:19:01 +08:00
parent 7c70b3c760
commit 4118e799a0

View File

@ -4,7 +4,7 @@
* Author: Justin (xiefahit@gmail.com) * Author: Justin (xiefahit@gmail.com)
*/ */
// 列表类 /* 列表类简易实现 */
class MyList { class MyList {
private nums: Array<number>; // 数组(存储列表元素) private nums: Array<number>; // 数组(存储列表元素)
private _capacity: number = 10; // 列表容量 private _capacity: number = 10; // 列表容量