Given a string, print all of its substrings that are palindromes. Assumption: list every occurrence by position, including single characters; a distinct-only variant can be obtained with a set.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.