Trees Implementation
class Tree {
data class Node(val value: Int) {
var leftNode: Node? = null
var rightNode: Node? = null
}
var rootNode: Node? = null
fun insert(value: Int) {
val newNode = Node(value)
if (rootNode == n...
abhiculous.hashnode.dev3 min read