Several improvements (#1002)

* Update buttons.

* Update button svg

* Update button

* Update README.md

* Update index.md

* Update translation of about_the _book

* Update English headings.
This commit is contained in:
Yudong Jin
2023-12-24 10:37:25 +08:00
committed by GitHub
parent b115a2b895
commit 6d961d38a0
22 changed files with 27 additions and 21 deletions

View File

@ -28,9 +28,10 @@ void removeItem(ListNode *n0) {
/* 访问链表中索引为 index 的节点 */
ListNode *access(ListNode *head, int index) {
while (head && head->next && index) {
for (int i = 0; i < index; i++) {
if (head == NULL)
return NULL;
head = head->next;
index--;
}
return head;
}