MediumLeetCode #235Trees
Lowest Common Ancestor of BST
Given a binary search tree (BST), find the lowest common ancestor (LCA) node of two given nodes in the BST.
Constraints
The number of nodes in the tree is in the range [2, 10^5], All Node.val are unique