1. hashing_search.md editted
This commit is contained in:
parent
bb24e8083a
commit
92e00a5241
@ -131,7 +131,7 @@ comments: true
|
|||||||
|
|
||||||
```go title="hashing_search.go"
|
```go title="hashing_search.go"
|
||||||
/* 哈希查找(链表) */
|
/* 哈希查找(链表) */
|
||||||
func hashingSearch1(m map[int]*pkg.ListNode, target int) *pkg.ListNode {
|
func hashingSearch1(m map[int]*ListNode, target int) *ListNode {
|
||||||
// 哈希表的 key: 目标结点值,value: 结点对象
|
// 哈希表的 key: 目标结点值,value: 结点对象
|
||||||
// 若哈希表中无此 key ,返回 nil
|
// 若哈希表中无此 key ,返回 nil
|
||||||
if node, ok := m[target]; ok {
|
if node, ok := m[target]; ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user