Skip to content

Commit

Permalink
Bugfix for grades combo baseline application
Browse files Browse the repository at this point in the history
  • Loading branch information
jiateoh committed Aug 25, 2020
1 parent 0df7eb2 commit de934ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -64,7 +64,7 @@ object StudentGradesComboBaseline {
maxHeap.enqueue(avg)
while (maxHeap.size > lowestLimit) maxHeap.dequeue()
}
if (minHeap.size < lowestLimit || avg > minHeap.head) {
if (minHeap.size < highestLimit || avg > minHeap.head) {
minHeap.enqueue(avg)
while (minHeap.size > highestLimit) minHeap.dequeue()
}

0 comments on commit de934ff

Please sign in to comment.