| 126 | } |
| 127 | |
| 128 | int main() |
| 129 | { |
| 130 | vector<int>test={8,5,3,6,11,10,9,12}; |
| 131 | Tree *root=nullptr; |
| 132 | for(int i:test) |
| 133 | root=root->buildTree(i); |
| 134 | cout<<"The tree: "; |
| 135 | root->preOrder(); |
| 136 | root=deleteNode(root,6); |
| 137 | cout<<"\nThe tree after deletion: "; |
| 138 | root->preOrder(); |
| 139 | } |
nothing calls this directly
no test coverage detected