401

Palindromes
Type: String
Diff: 1.5

Tricks

The code is lengthy but the problem is just simple.

There is nothing said about the word length. I use 500 for the word length. And I initialize an array for finding the mirror like the following:

listr['A']='A';      listr['E']='3';      listr['H']='H';      listr['I']='I';
listr['J']='L';      listr['L']='J';      listr['M']='M';      listr['O']='O';
listr['S']='2';      listr['T']='T';      listr['U']='U';      listr['V']='V';

listr['W']='W';      listr['X']='X';      listr['Y']='Y';      listr['Z']='5';
listr['1']='1';      listr['2']='S';      listr['3']='E';      listr['8']='8';
listr['5']='Z';  

If you have any advice, complements 

or proposal, please  Send mail to Author

Submit

1