Exemple #1
0
 protected override bool MustBubbleUp(MaxHeap <Quote> child, MaxHeap <Quote> parent)
 {
     return(child.CompareTo(parent) > 0);
 }
Exemple #2
0
 protected override bool StopBubbleUp(MaxHeap <Quote> parent, MaxHeap <Quote> child)
 {
     return(parent.CompareTo(child) > -1);
 }