// parent returns the parent node index of v and the pointer to v value
// in the parent.
parent returns the parent node index of v and the pointer to v value
in the parent.
// parent returns the parent node index of v and the pointer to v value // in the parent .
func (t *binTree) parent(v uint32) (p uint32, ptr *uint32) {
	if t.root == v {
		return null, &t.root
	}
	p = t.node[v].p
	if t.node[p].l == v {
		ptr = &t.node[p].l
	} else {
		ptr = &t.node[p].r
	}
	return
}
func ( t * binTree ) parent ( v uint32 ) ( p uint32 , ptr * uint32 ) { if t . root == v { return null , & t . root } p = t . node [ v ] . p if t . node [ p ] . l == v { ptr = & t . node [ p ] . l } else { ptr = & t . node [ p ] . r } return }
parent returns the parent node index of v and the pointer to v value
in the parent.
parent returns the parent node index of v and the pointer to v value in the parent .