Author |
Topic: Make a string a palindrome (Read 722 times) |
|
irrational
Junior Member
Gender:
Posts: 52
|
|
Make a string a palindrome
« on: Apr 5th, 2007, 9:21am » |
Quote Modify
|
Given a string, what are the minimum number of letters to be added to it to make it a palindrome. example: "xygcmadamgyxc" will become a palindrome by making it: cxygcmadamcgyxc Culled from another forum. Hope this is not a repeat.
|
|
IP Logged |
|
|
|
towr
wu::riddles Moderator Uberpuzzler
Some people are average, some are just mean.
Gender:
Posts: 13730
|
|
Re: Make a string a palindrome
« Reply #1 on: Apr 5th, 2007, 10:35am » |
Quote Modify
|
Maybe we could use something like the Needleman-Wunsch Algorithm
|
|
IP Logged |
Wikipedia, Google, Mathworld, Integer sequence DB
|
|
|
|