/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } };*/ #include <utility> class Solution { public: int TreeDepth(TreeNode* pRoot) { if(pRoot==nullptr) return 0; getDepth(pRoot, 1); return result;...