juchem/prep

exercise 10

GoogleCodeExporter opened this issue · 0 comments

int treeSum(TreeNode * node) {
    if( ! node ) return 0;

    return node->value += treeSum(node->left) + treeSum(node->right);
}

Original issue reported on code.google.com by jose.di...@gmail.com on 13 Jul 2012 at 6:15