Class PriorityQueueWithUnorderedLinkedList<T>
- Namespace
- AlgorithmsSW.PriorityQueue
- Assembly
- AlgorithmsSW.dll
[ExerciseReference(2, 4, 3)]
public sealed class PriorityQueueWithUnorderedLinkedList<T> : IPriorityQueue<T>, IEnumerable<T>, IEnumerable
Type Parameters
T
- Inheritance
-
PriorityQueueWithUnorderedLinkedList<T>
- Implements
-
IEnumerable<T>
- Inherited Members
- Extension Methods
Constructors
PriorityQueueWithUnorderedLinkedList(IComparer<T>)
public PriorityQueueWithUnorderedLinkedList(IComparer<T> comparer)
Parameters
comparer
IComparer<T>
Properties
Count
public int Count { get; }
Property Value
PeekMin
public T PeekMin { get; }
Property Value
- T
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<T> GetEnumerator()
Returns
- IEnumerator<T>
An enumerator that can be used to iterate through the collection.
PopMin()
public T PopMin()
Returns
- T
Push(T)
public void Push(T item)
Parameters
item
T