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
+1 -1
View File
@@ -19,7 +19,7 @@ func hashingSearchArray(m map[int]int, target int) int {
/* 哈希查找(链表) */
func hashingSearchLinkedList(m map[int]*ListNode, target int) *ListNode {
// 哈希表的 key: 目标点值,value: 点对象
// 哈希表的 key: 目标点值,value: 点对象
// 若哈希表中无此 key ,返回 nil
if node, ok := m[target]; ok {
return node
@@ -32,5 +32,5 @@ func TestHashingSearch(t *testing.T) {
head = head.Next
}
node := hashingSearchLinkedList(m1, target)
fmt.Println("目标点值 3 的对应点对象为 ", node)
fmt.Println("目标点值 3 的对应点对象为 ", node)
}
+1 -1
View File
@@ -25,7 +25,7 @@ func linearSearchArray(nums []int, target int) int {
func linearSearchLinkedList(node *ListNode, target int) *ListNode {
// 遍历链表
for node != nil {
// 找到目标点,返回之
// 找到目标点,返回之
if node.Val == target {
return node
}
@@ -22,5 +22,5 @@ func TestLinearSearch(t *testing.T) {
// 在链表中执行线性查找
head := ArrayToLinkedList(nums)
node := linearSearchLinkedList(head, target)
fmt.Println("目标点值 3 的对应点对象为", node)
fmt.Println("目标点值 3 的对应点对象为", node)
}