// max returns the node with maximum value in the subtree with v as
// root.
max returns the node with maximum value in the subtree with v as
root.
// max returns the node with maximum value in the subtree with v as // root .
func (t *binTree) max(v uint32) uint32 {
	if v == null {
		return null
	}
	for {
		r := t.node[v].r
		if r == null {
			return v
		}
		v = r
	}
}
func ( t * binTree ) max ( v uint32 ) uint32 { if v == null { return null } for { r := t . node [ v ] . r if r == null { return v } v = r } }
max returns the node with maximum value in the subtree with v as
root.
max returns the node with maximum value in the subtree with v as root .