prep
prep copied to clipboard
Coding exercises to stay in shape.
``` 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 `[email protected]` on 13 Jul...
``` What steps will reproduce the problem? 1. Input: 0 4 1 1 1 1 2 1 2 What is the expected output? What do you see instead? The result...
``` #include #include #include #include using namespace std; template void genseq(T start, T end, int tam); int main() { char master[] = {'a','b','c','d','e'}; for( int s = 0; s