Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (17 sloc) 392 Bytes
namespace DataStructures.BinaryHeap
{
using System;
using System.Linq;
public class MaxBinaryHeap<T> : BinaryHeap<T>
where T : IComparable<T>
{
public MaxBinaryHeap()
: base((T a, T b) => a.CompareTo(b))
{
}
public override IDynamicSetNode<T> Maximum()
{
return this.FirstOrDefault();
}
}
}
You can’t perform that action at this time.