int equilibriumPoint(long long a[], int n) { /* for(int i=0;i
Read moreNode*inOrderSuccesor(Node*root) { Node*curr=root; while(curr && curr->left!=NULL) { curr=curr->left; } ret…
Read moreNode* lca(Node* root ,int n1 ,int n2 ) { if(root==NULL) { return NULL; } if(root->data==n1 || root-&g…
Read moreLongest Common Prefix in an Array :- Given an array of N strings, find the longest common prefix among all strings present in the array. string …
Read more/** int height(struct Node* node){ if(node==NULL) { return 0; } int leftt=height(node->left); int rightt=he…
Read more
Social Plugin