예제 #1
0
 protected override bool MustBubbleUp(MinHeap <Quote> child, MinHeap <Quote> parent)
 {
     return(child.CompareTo(parent) < 0);
 }
예제 #2
0
 protected override bool StopBubbleUp(MinHeap <Quote> parent, MinHeap <Quote> child)
 {
     return(parent.CompareTo(child) < 1);
 }