Class MinMaxPriorityQueue<T>
- Namespace
- AlgorithmsSW.PriorityQueue
- Assembly
- AlgorithmsSW.dll
[ExerciseReference(2, 4, 29)]
public class MinMaxPriorityQueue<T>
Type Parameters
T
- Inheritance
-
MinMaxPriorityQueue<T>
- Inherited Members
- Extension Methods
Constructors
MinMaxPriorityQueue(IComparer<T>)
public MinMaxPriorityQueue(IComparer<T> comparer)
Parameters
comparer
IComparer<T>
Properties
PeekMax
public T PeekMax { get; }
Property Value
- T
PeekMin
public T PeekMin { get; }
Property Value
- T
Methods
PopMax()
public T PopMax()
Returns
- T
PopMin()
public T PopMin()
Returns
- T
Push(T)
public void Push(T item)
Parameters
item
T