toggle menu
KAHelpers
androidJvm
switch theme
search in API
dataStructuresAndAlgorithms
/
dev.funkymuse.datastructuresandalgorithms.trees
/
TreeNode
Tree
Node
class
TreeNode
<
T
>
(
val
value
:
T
)
Members
Constructors
Tree
Node
Link copied to clipboard
constructor
(
value
:
T
)
Properties
value
Link copied to clipboard
val
value
:
T
Functions
add
Link copied to clipboard
fun
add
(
child
:
TreeNode
<
T
>
)
find
Link copied to clipboard
fun
find
(
value
:
T
)
:
TreeNode
<
T
>
?
for
Each
Depth
First
Link copied to clipboard
fun
forEachDepthFirst
(
visit
:
Visitor
<
T
>
)
for
Each
Level
Order
Link copied to clipboard
fun
forEachLevelOrder
(
visit
:
Visitor
<
T
>
)
print
Each
Level
Link copied to clipboard
fun
printEachLevel
(
)