You are viewing a single comment's thread. Return to all comments →
In case of aaaabbbb none of the elements have odd occurrence but it has a valid palindrome bbaaaabb.
ya thats the logic....if all elements occur even time then its palindrone.....nd for odd max one aplhabate can have odd no. of occurance....
how can u check that without determing the nature of lenth?pls explain