toggle menu
KAHelpers
androidJvm
switch theme
search in API
dataStructuresAndAlgorithms
/
dev.funkymuse.datastructuresandalgorithms.linkedList
Package-level
declarations
Types
Functions
Types
Linked
List
Link copied to clipboard
class
LinkedList
<
T
>
:
Iterable
<
T
>
,
Collection
<
T
>
,
MutableIterable
<
T
>
,
MutableCollection
<
T
>
,
Serializable
,
Cloneable
Linked
List
Iterator
Link copied to clipboard
class
LinkedListIterator
<
T
>
(
list
:
LinkedList
<
T
>
)
:
Iterator
<
T
>
,
MutableIterator
<
T
>
Node
Link copied to clipboard
data
class
Node
<
T
>
(
var
value
:
T
,
var
next
:
Node
<
T
>
?
=
null
)
Functions
get
Middle
Link copied to clipboard
fun
<
T
>
LinkedList
<
T
>
.
getMiddle
(
)
:
Node
<
T
>
?
merge
Sorted
Link copied to clipboard
fun
<
T
:
Comparable
<
T
>
>
LinkedList
<
T
>
.
mergeSorted
(
otherList
:
LinkedList
<
T
>
)
:
LinkedList
<
T
>
print
In
Reverse
Link copied to clipboard
fun
<
T
>
LinkedList
<
T
>
.
printInReverse
(
)
fun
<
T
>
Node
<
T
>
.
printInReverse
(
)
reversed
Link copied to clipboard
fun
<
T
>
LinkedList
<
T
>
.
reversed
(
)
:
LinkedList
<
T
>