recursive function call in binary tree
You should call the function childCount
as method of a class, just add $this->
return (1 + $this->childCount($id,'L') + $this->childCount($id,'R'));
You should call the function childCount
as method of a class, just add $this->
return (1 + $this->childCount($id,'L') + $this->childCount($id,'R'));