Domanda di colloquio di Amdocs

find size of the given binary tree..

Risposta di colloquio

Anonimo

22 giu 2012

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