Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MaxHeap ¶
type MaxHeap[T constraints.Ordered] []T
最大堆 可用于保留前n个最小元素
func NewFromArray ¶
func NewFromArray[T constraints.Ordered](arr []T) MaxHeap[T]
Click to show internal directories.
Click to hide internal directories.