Versions in this module Expand all Collapse all v1 v1.0.3 Sep 13, 2023 Changes in this version + type GetMidNum struct + func NewGetMidNum() *GetMidNum + func (m *GetMidNum) FindMedian() float64 + func (m *GetMidNum) GetAttribute() *C.Attribute + func (m *GetMidNum) Offer(value int) + type MaxSlidingWindowByPQ struct + func (m *MaxSlidingWindowByPQ) GetAttribute() *C.Attribute + func (m *MaxSlidingWindowByPQ) Method(array []int, k int) []int + type PriorityQueue struct + Comp C.Compare + IsSmallHeap bool + func NewPriorityQueue(options ...C.Options) *PriorityQueue + func (m *PriorityQueue) Empty() bool + func (m *PriorityQueue) GetAttribute() *C.Attribute + func (m *PriorityQueue) Offer(value interface{}) + func (m *PriorityQueue) Peak() interface{} + func (m *PriorityQueue) Poll() interface{} + func (m *PriorityQueue) Resize() + func (m *PriorityQueue) Size() int + func (m *PriorityQueue) Update(value interface{}) + type ReturnKMinByHeapSort struct + func (m *ReturnKMinByHeapSort) GetAttribute() *C.Attribute + func (m *ReturnKMinByHeapSort) ReturnKMin(array []int, k int) []int + type ReturnKMinByQuickSort struct + func (m *ReturnKMinByQuickSort) GetAttribute() *C.Attribute + func (m *ReturnKMinByQuickSort) ReturnKMin(array []int, k int) []int + type WordFrequency struct + func (m *WordFrequency) GetAttribute() *C.Attribute + func (m *WordFrequency) Statistics(words []string) []string