跳到主要内容

heapify

在O(N)时间内将数组转换成堆

声明

void heapify(array arr, function predicate = nil)

参数

参数名描述
arr

返回值

使用方式

返回文档