Recover Binary Search Tree
Aug 23, 2021 · 3 min read · You are given a binary tree root which is almost a binary search tree except two nodes' values have been swapped. Return the original binary search tree i.e You are given the root of a binary search tree (BST), where exactly two nodes of the tree w...
Join discussion