???
if you meant that the string should be of the form pZq where p=q(inverse) ,
where p,q can only be X or Y,
then the simple way would be to see if the first and the last character are
same and equal to X or Y or not!!!

but i am sure there is more to this question, it cannot be that simple...

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