check this link and let me know if anything wrong:
http://rajeevprasanna.blogspot.com/2011/07/is-given-characters-of-string-form.html


On Tue, Jul 26, 2011 at 11:37 AM, Anika Jain <[email protected]> wrote:

> int palin(char *p)
> {
>     int x=0;
>     while(*p)
>     {
>         x^=1<<(*p-'a');
>         p++;
>     }
>     int i=0,count=0;
>     while(i<26)
>     {
>         count+=(1<<i & x)>>i;
>         i++;
>     }
>     if(count>1)
>         return 0;
>     else
>
>         return 1;
> }
>
>  --
> 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.
>



-- 
Thank You
Rajeev Kumar

-- 
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