MCPcopy Create free account
hub / github.com/Reaper622/DataStructure-Algorithm-TS / HeapSort

Function HeapSort

Algorithm/Sort/HeapSort.js:12–21  ·  view source on GitHub ↗

* 根据传入堆的类型来返回排序数组 * 大顶堆对应从大到小 * 小顶堆对应从小到大 * * @param {number[]} array * @param {string} type

(array, type)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

createMethod · 0.80
pushMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected