Update TypeScript style (Chapter of Array and Linkedlist)
This commit is contained in:
parent
7c70b3c760
commit
4118e799a0
@ -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; // 列表容量
|
||||||
|
Loading…
Reference in New Issue
Block a user