cleanup
This commit is contained in:
@@ -230,10 +230,6 @@ class MultiwayLongMerger {
|
|||||||
final long valueOfLeftChild = heap[leftChildIndex];
|
final long valueOfLeftChild = heap[leftChildIndex];
|
||||||
final long valueOfRightChild = heap[rightChildIndex];
|
final long valueOfRightChild = heap[rightChildIndex];
|
||||||
|
|
||||||
// final boolean chooseLeft = valueOfLeftChild < valueOfRightChild;
|
|
||||||
// heap[currentIndex] = chooseLeft ? valueOfLeftChild : valueOfRightChild;
|
|
||||||
// currentIndex = chooseLeft ? leftChildIndex : rightChildIndex;
|
|
||||||
|
|
||||||
if (valueOfLeftChild < valueOfRightChild) {
|
if (valueOfLeftChild < valueOfRightChild) {
|
||||||
// left < right
|
// left < right
|
||||||
heap[currentIndex] = valueOfLeftChild;
|
heap[currentIndex] = valueOfLeftChild;
|
||||||
|
|||||||
Reference in New Issue
Block a user