Day 18
Day 18
Trim a Binary Search Tree
1 | class Solution { |
1 | func trimBST(root *TreeNode, low int, high int) *TreeNode { |
Convert Sorted Array to Binary Search Tree
1 | class Solution { |
1 | func sortedArrayToBST(nums []int) *TreeNode { |
Convert BST to Greater Tree
1 | class Solution { |
1 | func convertBST(root *TreeNode) *TreeNode { |