MaxHeap
public struct MaxHeap<T> : Heap where T : Comparable
A MaxHeap
using iterative heapify methods.
-
Public init
Declaration
Swift
public init()
-
The storage array of the
Heap
Declaration
Swift
public var storage: [T]
-
The
MaxHeap
iterativeheapifyUp
algorithm.Declaration
Swift
public mutating func heapifyUp()
-
The
MaxHeap
iterativeheapifyDown
algorithm.Declaration
Swift
public mutating func heapifyDown()