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
@@ -15,7 +15,7 @@ func hashingSearchArray(map: [Int: Int], target: Int) -> Int {
/* */
func hashingSearchLinkedList(map: [Int: ListNode], target: Int) -> ListNode? {
// key: value:
// key: value:
// key null
return map[target]
}
@@ -41,10 +41,10 @@ enum HashingSearch {
//
var map1: [Int: ListNode] = [:]
while head != nil {
map1[head!.val] = head! // key: value:
map1[head!.val] = head! // key: value:
head = head?.next
}
let node = hashingSearchLinkedList(map: map1, target: target)
print("目标点值 3 的对应点对象为 \(node!)")
print("目标点值 3 的对应点对象为 \(node!)")
}
}
@@ -24,13 +24,13 @@ func linearSearchLinkedList(head: ListNode?, target: Int) -> ListNode? {
var head = head
//
while head != nil {
//
//
if head?.val == target {
return head
}
head = head?.next
}
// null
// null
return nil
}
@@ -48,6 +48,6 @@ enum LinearSearch {
/* 线 */
let head = ListNode.arrToLinkedList(arr: nums)
let node = linearSearchLinkedList(head: head, target: target)
print("目标点值 3 的对应点对象为 \(node!)")
print("目标点值 3 的对应点对象为 \(node!)")
}
}