- Write a RECURSIVE function, swapSubtrees, that swapsall of the left and right subtrees of a binary tree.
void swapSubtrees(TreeNode*p)
need In C++ languageplease
Expert Answer
Answer to Write a RECURSIVE function, swapSubtrees, that swaps all of the left and right subtrees of a binary tree. void swapSubt…