Re-translate the Japanese version (#1871)

* Retranslate Japanese docs with GPT-5.4

* Retranslate Japanese code with GPT-5.4
This commit is contained in:
Yudong Jin
2026-03-30 07:30:15 +08:00
committed by GitHub
parent fe6443235b
commit d7b2277d2b
1444 changed files with 83312 additions and 8363 deletions
@@ -0,0 +1,29 @@
// File: hashing_search.go
// Created Time: 2022-12-12
// Author: Slone123c (274325721@qq.com)
package chapter_searching
import . "github.com/krahets/hello-algo/pkg"
/* ハッシュ探索(配列) */
func hashingSearchArray(m map[int]int, target int) int {
// ハッシュテーブルの key: 目標要素、value: インデックス
// ハッシュテーブルにこの key がなければ -1 を返す
if index, ok := m[target]; ok {
return index
} else {
return -1
}
}
/* ハッシュ探索(連結リスト) */
func hashingSearchLinkedList(m map[int]*ListNode, target int) *ListNode {
// ハッシュテーブルの key: 対象ノードの値、value: ノードオブジェクト
// ハッシュテーブルにその key がなければ nil を返す
if node, ok := m[target]; ok {
return node
} else {
return nil
}
}