MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/binarytreeuse.cpp:532–551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530
531
532int main()
533{
534 // 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
535 // 1 2 3 4 5 6 7 -1 -1 -1 -1 8 9 -1 -1 -1 -1 -1 -1
536 //8 5 10 2 6 -1 6 -1 -1 -1 7 -1 -1 -1 -1
537 // 1 2 3 4 5 -1 -1 -1 -1 -1 -1
538 // 1 2 3 4 5 -1 8 -1 -1 6 -1 -1 -1 -1 -1
539 // int in[]={4,2,5,1,8,6,9,33,7};
540 // int pre[]={1,2,4,5,33,6,8,9,7};
541 // binarytree<int>*root=buildtree(in,pre,9);
542
543 binarytree<int>*root=takeinputlevelwise();
544 printlevelwise(root);
545 cout<<endl;
546 int a=pair_sum_binarytree(root,11);
547
548
549
550 return 0;
551}

Callers

nothing calls this directly

Calls 3

takeinputlevelwiseFunction · 0.85
printlevelwiseFunction · 0.85
pair_sum_binarytreeFunction · 0.85

Tested by

no test coverage detected