cleanup
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user