refactor: Replace 结点 with 节点 (#452)

* Replace 结点 with 节点
Update the footnotes in the figures

* Update mindmap

* Reduce the size of the mindmap.png
This commit is contained in:
Yudong Jin
2023-04-09 04:32:17 +08:00
committed by GitHub
parent 3f4e32b2b0
commit 1c8b7ef559
395 changed files with 2056 additions and 2056 deletions
+4 -4
View File
@@ -22,12 +22,12 @@ int linearSearchArray(int *nums, int len, int target) {
ListNode* linearSearchLinkedList(ListNode* head, int target) {
// 遍历链表
while (head != NULL) {
// 找到目标点,返回之
// 找到目标点,返回之
if (head->val == target)
return head;
head = head->next;
}
// 未找到目标点,返回 NULL
// 未找到目标点,返回 NULL
return NULL;
}
@@ -44,9 +44,9 @@ int main() {
ListNode* head = arrToLinkedList(nums, 10);
ListNode* node = linearSearchLinkedList(head, target);
if(node == NULL) {
printf("目标点值 3 的对应点对象为 NULL\n");
printf("目标点值 3 的对应点对象为 NULL\n");
} else {
printf("目标点值 3 的对应点对象为 addr: %p val: %d\n", node, node->val);
printf("目标点值 3 的对应点对象为 addr: %p val: %d\n", node, node->val);
}
return 0;