AbstractHeap

abstract class AbstractHeap<T> : Heap<T>

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val count: Int
Link copied to clipboard
Link copied to clipboard
open val isEmpty: Boolean
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun compare(first: T, second: T): Int
Link copied to clipboard
open override fun getNthSmallestT(n: T): T?
Link copied to clipboard
open override fun insert(element: T)
Link copied to clipboard
open override fun isMinHeap(): Boolean
Link copied to clipboard
open override fun merge(heap: AbstractHeap<T>)
Link copied to clipboard
open override fun peek(): T?
Link copied to clipboard
open override fun remove(): T?
Link copied to clipboard
open override fun removeAt(index: Int): T?