ideahive.me
Leetcode 99 – Recover Binary Search Tree – Constant space
Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure with constant space. Example 1: Input: [1,3,null,null,2] 1 / 3  …