Any string can be imagined as a sequence of palindromes because one letter strings are technically palindromes. Let be the minimum number of palindromes from which can be constructed. What is the value of of the following
1 |
|
Examples
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Solution in python: