class Solution { public: int lowestCommonAncestor(TreeNode* root, int p, int q) { // write code here if((root->val - p) * (root->val - q) <= 0) return root->val; return root->val - p < 0 ? lowestCommonAncestor(root->right,p,q) : lowestCommonAncestor(r...