can anyone give me some ideas on how i could flip a binary tree around using a recursive function..for example.
struct BinaryTreeNode
{
int data;
BinaryTreeNode *left;
BinaryTreeNode *right;
};
Example original tree: Example new tree:
1 1
/ \ / \
2 3 3 2
/ \ / \
4 5 5 4