toggle menu
KAHelpers
androidJvm
switch theme
search in API
dataStructuresAndAlgorithms
/
dev.funkymuse.datastructuresandalgorithms.heap
/
Heap
Heap
interface
Heap
<
T
>
:
Collection
<
T
>
Inheritors
AbstractHeap
Members
Properties
count
Link copied to clipboard
abstract
val
count
:
Int
is
Empty
Link copied to clipboard
open
val
isEmpty
:
Boolean
is
Not
Empty
Link copied to clipboard
open
val
isNotEmpty
:
Boolean
Functions
get
Nth
Smallest
T
Link copied to clipboard
abstract
fun
getNthSmallestT
(
n
:
T
)
:
T
?
insert
Link copied to clipboard
abstract
fun
insert
(
element
:
T
)
is
Min
Heap
Link copied to clipboard
abstract
fun
isMinHeap
(
)
:
Boolean
merge
Link copied to clipboard
abstract
fun
merge
(
heap
:
AbstractHeap
<
T
>
)
peek
Link copied to clipboard
abstract
fun
peek
(
)
:
T
?
remove
Link copied to clipboard
abstract
fun
remove
(
)
:
T
?
remove
At
Link copied to clipboard
abstract
fun
removeAt
(
index
:
Int
)
:
T
?