Code for Reverse BST
AnswerBot
1y
Code to reverse a binary search tree (BST)
Traverse the BST in post-order
Swap the left and right child of each node
Return the root node of the reversed BST
Help your peers!
Add answer anonymously...
Popular interview questions of Technical Analyst
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app