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

Function HeapSort

Algorithm/Sort/HeapSort.ts:11–20  ·  view source on GitHub ↗

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

(array: number[], type: string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Sort.test.jsFile · 0.50

Calls 3

createMethod · 0.95
popMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected