Apply preorder(), inorder(), and postorder() to the tree in Figure, if visit(p) is defined as:
a.
if (p->left != 0 && p->el - p->left->el<2) p->left->el += 2;b.if (p->left == 0) p->right = 0;c.if (p->left == 0) p->left = new IntBSTNode(p->el - 1)d.{ tmp = p->right; p->right = p->left; p->left = tmp;}
Figure An example of a binary search tree.

We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.