this is C++ programme


bool   hasSum(struct node **head , int sum){
       if ((*head ) == NULL)
             return   (sum == 0)

        else {
               sum = sum -*(head)->data;
               hasSum(&(*head)->left , int sum);
               hasSum(&(*head)->right , int sum) ;
        }
}

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to