/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} * }; */ class Solution { public: int lowestCommonAncestor(TreeNode* root, int p, int q) { if ((q > root->val && p > ro...