Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 885 Bytes

MaxHeap.md

File metadata and controls

29 lines (15 loc) · 885 Bytes

MaxHeap

Inherits: BinaryHeap<T>

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


Constructors

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

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

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

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


Properties

Check BinaryHeap


Methods

Check BinaryHeap