This commit is contained in:
2020-11-07 17:30:47 +01:00
parent c6d0182af7
commit 54fbebf0b7

View File

@@ -230,10 +230,6 @@ class MultiwayLongMerger {
final long valueOfLeftChild = heap[leftChildIndex];
final long valueOfRightChild = heap[rightChildIndex];
// final boolean chooseLeft = valueOfLeftChild < valueOfRightChild;
// heap[currentIndex] = chooseLeft ? valueOfLeftChild : valueOfRightChild;
// currentIndex = chooseLeft ? leftChildIndex : rightChildIndex;
if (valueOfLeftChild < valueOfRightChild) {
// left < right
heap[currentIndex] = valueOfLeftChild;