Pregunta de entrevista de Amdocs

find size of the given binary tree..

Respuesta de la entrevista

Anónimo

22 jun 2012

int size(tree* root) { if(root==NULL) return 0; else return size(root->left)+1+size(root->right); }