跳到主要内容

heap_sort

堆排序,时间复杂度为O(N * log N)

声明

void heap_sort(array arr, function predicate = nil)

参数

参数名描述
arr

返回值

使用方式

返回文档