TreeNode is now not final.

This commit is contained in:
2020-01-10 11:19:38 +01:00
parent 5adaec9c92
commit 567e134b97
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
package com.github.adriankuta.datastructure.tree
class TreeNode<T>(val value: T) {
open class TreeNode<T>(val value: T) {
private var parent: TreeNode<T>? = null
private val children = mutableListOf<TreeNode<T>>()