MCPcopy Create free account
hub / github.com/acm-clan/algorithm-stone / dumpInternal

Method dumpInternal

templates/segment-tree.cpp:41–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected