My node looks like this ``` data class BinaryTreeN...
# codereview
c
My node looks like this
Copy code
data class BinaryTreeNode<T>(
      var data: T,
      var leftChild: BinaryTreeNode<T>? = null,
      var rightChild: BinaryTreeNode<T>? = null,
      var parent: BinaryTreeNode<T>? = null) {

      fun getMinimum(): BinaryTreeNode<T>? {
      if (leftChild == null) return this
      return this.leftChild?.getMinimum()
    }
}