Recover BST

Category: Trees & BSTs

Difficulty: advanced

Description: Fix BST with two swapped nodes

Time Complexity: O(n)

Space Complexity: O(h)

Related LeetCode Problems