Searched refs:isEvenLevel (Results 1 – 2 of 2) sorted by relevance
772 assertTrue(MinMaxPriorityQueue.isEvenLevel(0)); in testIsEvenLevel()773 assertFalse(MinMaxPriorityQueue.isEvenLevel(1)); in testIsEvenLevel()774 assertFalse(MinMaxPriorityQueue.isEvenLevel(2)); in testIsEvenLevel()775 assertTrue(MinMaxPriorityQueue.isEvenLevel(3)); in testIsEvenLevel()777 assertFalse(MinMaxPriorityQueue.isEvenLevel((1 << 10) - 2)); in testIsEvenLevel()778 assertTrue(MinMaxPriorityQueue.isEvenLevel((1 << 10) - 1)); in testIsEvenLevel()781 assertTrue(MinMaxPriorityQueue.isEvenLevel(i - 2)); in testIsEvenLevel()782 assertFalse(MinMaxPriorityQueue.isEvenLevel(i - 1)); in testIsEvenLevel()783 assertFalse(MinMaxPriorityQueue.isEvenLevel(i)); in testIsEvenLevel()786 assertFalse(MinMaxPriorityQueue.isEvenLevel(i - 2)); in testIsEvenLevel()[all …]
455 return isEvenLevel(i) ? minHeap : maxHeap; in heapForIndex()461 @VisibleForTesting static boolean isEvenLevel(int index) { in isEvenLevel() method in MinMaxPriorityQueue