All pastes #60531 Raw Edit

Miscellany

public cpp v1 · immutable
#60531 ·published 2006-06-01 07:12 UTC
rendered paste body
find_root(A[],n)//n is the number of elements{	int i = 0;	Node* curroot = A[0];	for(i = 1;i < n;i++)		if(A[i] -> left == curroot)			curroot = A[i];	return curroot;}