chi
03/18/2018, 8:44 PMdata 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()
}
}