Polish the chapter of heap, introduction, preface.

Replace "其它" with "其他"
This commit is contained in:
krahets
2023-04-09 19:12:37 +08:00
parent 10e2180013
commit 0bec52d7cc
29 changed files with 185 additions and 161 deletions

View File

@@ -79,7 +79,7 @@ func (g *graphAdjList) removeVertex(vet Vertex) {
}
// 在邻接表中删除顶点 vet 对应的链表
delete(g.adjList, vet)
// 遍历其顶点的链表,删除所有包含 vet 的边
// 遍历其顶点的链表,删除所有包含 vet 的边
for _, list := range g.adjList {
DeleteSliceElms(list, vet)
}

View File

@@ -23,7 +23,7 @@ func bucketSort(nums []float64) {
}
// 2. 对各个桶执行排序
for i := 0; i < k; i++ {
// 使用内置切片排序函数,也可以替换成其排序算法
// 使用内置切片排序函数,也可以替换成其排序算法
sort.Float64s(buckets[i])
}
// 3. 遍历桶合并结果