Skip to content

exercise 10 #1

Description

@GoogleCodeExporter
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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions