another node in a tree right?
fun append(right: node): node {
val x = node(this.value)
x.left = this
x.right = right
val y = node(x.value)
y.left = x
return y
}
It's obviously not. 1. This won't compile. 2. This is pointless.
Обсуждают сегодня