Computer Science, asked by arunr5209, 4 months ago

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 daliprao1331
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