The task requires that make_palindrome return the smallest palindrome starting with the string, but only guarantees that the returned string is some palindrome starting with the string.
I am not sure whether this is worth fixing, I expect it to be quite a bit more complicated than what we do now.
The task requires that
make_palindrome
return the smallest palindrome starting with the string, but only guarantees that the returned string is some palindrome starting with the string.I am not sure whether this is worth fixing, I expect it to be quite a bit more complicated than what we do now.