package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Aug 11, 2020
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
container
Golang容器数据类型包含:heap
、list
和ring
三种。
Documentation
¶
int heap
使用heap需要实现heap.Interface接口的5个方法(Pop/Push以及从Sort继承的Len/Less/Swap方法)
func (h *IntHeap) Pop() interface{}
func (h *IntHeap) Push(x interface{})
Source Files
¶
Click to show internal directories.
Click to hide internal directories.