#include using namespace std; struct Node {     int data;     Node *left, *right; }; Node* newNode(int item) {     Node* temp = new Node;     temp->data = item;     temp->left = temp->right = NULL;     return temp; } int findDepth(Node* root, int x) {          if (root == NULL)         return -1;          int dist = -1;          if ((root->data == […]

Continue Reading