5. Mirror Tree
Problem Description
Example 1:
Input:
1
/ \
2 3
/
4Output:
1
/ \
3 2
\
4Explanation:
Example 2:
Input:
Output:
Explanation:
Constraints:
My Approach
Recursive DFS (Top-Down)
Time and Auxiliary Space Complexity
Code (C)
Code (C++)
Code (Java)
Code (Python)
Contribution and Support
📍Visitor Count
Last updated