Click here to Skip to main content
15,887,434 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
A teacher play an interesting game in the class. he select some n students of the class and make a row of these n students. he makes the row randomly. he puts the very interesting question to the remaining question of the class he told them select some of the student out of the row such that when we make the string using the first character of their names that string becomes a palindrome of the longest length possible tHe condition is that the string which is constructed using the first character of the student should be constructed in a way that the characters should come in the same order in which the students are standing in the same row find the length of the longest possible palindrome
Posted
Updated 10-Apr-15 23:44pm
v2
Comments
phil.o 11-Apr-15 3:46am    
Not a question.

1 solution

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!
 
Share this answer
 
Comments
nv3 11-Apr-15 9:14am    
Obviously, he didn't like your answer :-)
OriginalGriff 11-Apr-15 9:53am    
The disapprobation of lazy students is something I can bear with immense fortitude! :laugh:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900