| 530 | |
| 531 | |
| 532 | int 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 | } |
nothing calls this directly
no test coverage detected