generate all possible permutations and check each permutation whether it is palindrome or not.
On Sun, Jul 24, 2011 at 7:55 PM, UMESH KUMAR <kumar.umesh...@gmail.com>wrote: > Using the all characters of a given String how to specify either > a palindrome or not. > > Ex:- > > 1) String="teste" > After arrange all character we can made a palindrome String as "teset" > So output is TRUE. > > 2)String="hello" > we can not made a palindrome String > output is FALSE > > bool IspalindromePossible (String str) > { > } > > > Thanks > > > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- best wishes!! Vaibhav MCA -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.