there is no need to calculate the length of the string as only one odd occurrence is allowed,implying the length of the string will also be odd in that case. and if all occurrences are even,implicitly the length would be even.
On 9/13/11, sukran dhawan <[email protected]> wrote: > find the length of string > count the occurenece of each character > if the length is odd den all characters shud be repeated even number of > times except one character which shud be repeated odd no o f times > > if its even then all characters shud be repeated even number of times > > On Tue, Sep 13, 2011 at 12:27 AM, ankita aggarwal < > [email protected]> wrote: > >> count the frequency of each letter.Only one odd or all even >> frequencies will form palindromes. >> >> On 9/13/11, parag khanna <[email protected]> wrote: >> > .write a program to find out if a word is a possible palindrome or >> > not...eg:tsetes becomes a palindrome aftr rearranging the letters so it >> is a >> > valid palindrome >> > >> > >> > >> > >> > -- >> > Parag Khanna >> > B.tech Final Year >> > NIT,Kurukshetra >> > >> > -- >> > 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. >> > >> > >> >> >> -- >> Ankita Aggarwal >> UG Student >> PEC University of Technology, >> Chandigarh. >> >> -- >> 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. >> >> > > -- > 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. > > -- Ankita Aggarwal UG Student PEC University of Technology, Chandigarh. -- 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.
