Write a JAVA program to print smallest and biggest possible palindrome word in a
given string.
Eg. Wow you own kayak
Output: smallest palindrome word = wow
Largest palindrome word = kayak
Answers
Answered by
0
We can convert it to palindrome by adding characters in front of it. We have to find the shortest palindrome, that we can find performing this information. So if the string is like “abcc”, then the result will be − "ccbabcc
Similar questions
Biology,
2 months ago
Math,
4 months ago
Sociology,
10 months ago
Computer Science,
10 months ago
Geography,
10 months ago