| 39 | } |
| 40 | |
| 41 | void dumpInternal(TreeNode * n, int d){ |
| 42 | if(!n)return; |
| 43 | for(int i=0; i<d; i++)printf("--"); |
| 44 | printf("%d(%d %d)\n", n->v, n->l, n->r); |
| 45 | dumpInternal(n->left, d+1); |
| 46 | dumpInternal(n->right, d+1); |
| 47 | } |
| 48 | |
| 49 | void updateNode(TreeNode * n, int pos, int val){ |
| 50 | if(!n)return; |
nothing calls this directly
no outgoing calls
no test coverage detected