BinaryNode

class BinaryNode<T>(val value: T)

Constructors

Link copied to clipboard
constructor(value: T)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val value: T

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun height(node: BinaryNode<T>? = this): Int
Link copied to clipboard
fun serialize(node: BinaryNode<T> = this): MutableList<T?>
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun traversePreOrderWithNull(visit: (T?) -> Unit)