/*struct TreeNode { int val; struct TreeNode left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { }};/class Solution {public: int depth(TreeNode *node) { if(node==NULL) return 0; return 1+max(depth(node->left),depth(node-&...