Day 16
Day 16
Minimum Absolute Difference in BST
1 | class Solution { |
1 | func getMinimumDifference(root *TreeNode) int { |
Find Mode in Binary Search Tree
1 | class Solution { |
1 | func findMode(root *TreeNode) []int { |
Lowest Common Ancestor of a Binary Tree
1 | class Solution { |
1 | func lowestCommonAncestor(root, p, q *TreeNode) *TreeNode { |