Recover Binary Search Tree
Problem
You are given the root of a binary search tree (BST), where the values of exactly two nodes of the tree were swapped by mistake. Recover the tree without changing its structure. (link)
Example
chetan77.hashnode.dev3 min read