All Submissions


Problem Statement :
Given a string, find the minimum number of insertions required to convert it into a palindrome.

Input :
Consists of multiple lines, each containing a string (lesser than 100 characters). Read till EOF.

Output :
For each test case, print out the minimum number of insertions required.

Sample Input :

Hacky
Tada


Sample Output :

4
1


Problem Setter : Vishnu Mohandas


Languages: C,C++,Java

Time Limit: 1 Second(s)
Score: 100 Point(s)
Input File Limit: 50000 Bytes

Submit

Login to post clarification.

No Clarifications.

Contest

Mode Judge

Passive

Online

Overall Rankings

RankNameScore
1xyz0
2Ams0
3TIP0
4team420
5xyzz0
6asdasdasd0
7abcd0
8khankhan0
9Gabriel0
10gigel0