Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getParentIndex (0.09 sec)

  1. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

          return i * 2 + 1;
        }
    
        private int getRightChildIndex(int i) {
          return i * 2 + 2;
        }
    
        private int getParentIndex(int i) {
          return (i - 1) / 2;
        }
    
        private int getGrandparentIndex(int i) {
          return getParentIndex(getParentIndex(i)); // (i - 3) / 4
        }
      }
    
      /**
       * Iterates the elements of the queue in no particular order.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 33.9K bytes
    - Viewed (0)
Back to top