Add Python codes for the chapter

of array and linked list.
This commit is contained in:
krahets
2022-11-25 03:59:38 +08:00
parent 9a861140d8
commit cbf4ab0aaa
8 changed files with 503 additions and 22 deletions

View File

@ -20,12 +20,12 @@ class MyList {
nums = new int[initialCapacity];
}
/* 获取列表容量 */
/* 获取列表长度(即当前元素数量)*/
public int size() {
return size;
}
/* 获取列表长度(即当前元素数量) */
/* 获取列表容量 */
public int capacity() {
return nums.length;
}