Tuesday, 10 September 2013

Given any string, add the least amount of characters possible to make it a palindrome in linear time

Given any string, add the least amount of characters possible to make it a
palindrome in linear time

I'm able to come up with multiple O(N^2) solns but am stumped with coming
up with an O(N) algo.

No comments:

Post a Comment