fix(heap): add go codes

This commit is contained in:
reanon
2023-01-13 17:40:20 +08:00
parent 3dcdd1c72d
commit ec28b4ce7a
2 changed files with 1 additions and 41 deletions

View File

@@ -262,7 +262,7 @@ comments: true
```go title="my_heap.go"
type maxHeap struct {
// 使用切片而非数组,这样无需考虑扩容问题
// 使用切片而非数组,这样无需考虑扩容问题
data []any
}