Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 885 Bytes

MinHeap.md

File metadata and controls

29 lines (15 loc) · 885 Bytes

MinHeap

Inherits: BinaryHeap<T>

Represents a BinaryHeap in which the value of each node is smaller than the value of all its children.


Constructors

MinHeap() Initializes a new instance of MinHeap that is empty and has the default initial capacity.

MinHeap(IEnumerable<T> collection) Initializes a new instance of MinHeap that contains every element from the input collection and has enough capacity to accomodate the number of elements copied.

MinHeap(int capacity) Initializes a new instance of MinHeap that is empty and has the specified initial capacity.

MinHeap(IComparer<T> comparer) Initializes a new instance of MinHeap that is empty and uses the specified IComparer.


Properties

Check BinaryHeap


Methods

Check BinaryHeap