-
-
## [99. Recover Binary Search Tree](https://leetcode.com/problems/recover-binary-search-tree/)
二叉搜索树中的两个节点被错误地交换。
请在不改变其结构的情况下,恢复这棵树。
#### Example 1
```text
Input: [1,3,null,null,2]
…
-
## [96. Unique Binary Search Trees](https://leetcode.com/problems/unique-binary-search-trees/)
给定一个整数 `n`,求以 `1 ... n` 为节点组成的二叉搜索树有多少种?
#### Example
```text
Input: 3
Output: 5
Explanation:…
-
## [98. Validate Binary Search Tree](https://leetcode.com/problems/validate-binary-search-tree/)
给定一个二叉树,判断其是否是一个有效的二叉搜索树。
假设一个二叉搜索树具有如下特征:
- 节点的左子树只包含小于当前节点的数。
- 节点的右子树只包含大于当前节点的数。
- 所有左子树…
-
![image](https://user-images.githubusercontent.com/32625059/66123141-edce5400-e613-11e9-8cea-b5772ca4b8b2.png)
-
![image](https://user-images.githubusercontent.com/32625059/66559805-a0f4fb00-eb88-11e9-9002-ed4f284977b9.png)
-
![image](https://user-images.githubusercontent.com/32625059/66127030-6554b100-e61d-11e9-965b-46869726ba24.png)
-
**Would you like to work on the issue?**
Let us know if this issue should be assigned to you or tell us who you think could help to solve this issue.
-
#### This issue is about [Diameter of BST]
https://www.geeksforgeeks.org/diameter-of-a-binary-tree/
- [x] Issue Title is in form `Algo/DS Name [Language]`.
- [x] I searched or browsed the repo’s …
-
It would be nice to add a method to the BST class so that given an unsorted array of integers a balanced BST is constructed. I'm not sure whether it is already in the repo but I have not been able to …