Package org.jheaps

Interface DoubleEndedHeap<K>

    • Method Detail

      • findMax

        K findMax()
        Find an element with the maximum key.
        Returns:
        an element with the maximum key
        Throws:
        java.util.NoSuchElementException - if the heap is empty
      • deleteMax

        K deleteMax()
        Delete and return an element with the maximum key. If multiple such elements exists, only one of them will be deleted.
        Returns:
        the deleted element with the maximum key
        Throws:
        java.util.NoSuchElementException - if the heap is empty