原书出处
Hello 算法--Go版本
弹出堆顶元素 func (h *intHeap) Pop() any { //
待出堆元素存放在最后 last := (*h)[len(*h)-1 ] *h = (*h)[:len(*h)-1 ] return last } // Len sort.Interface 的方法 func (h *in
tHeap) Len() int { return len(*h ) } //
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Hello 算法--Go版本/_epub-src/OEBPS/Text/4.html
EPUB SHA-256:d705316e45fcd0eb1a7e53f47b78aeae959f1f72e9fad6f61d7880190c981683