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