Scattered Palindrome Substring Count (Swappable to Palindrome)
Problem: Count Substrings That Can Be Rearranged Into a Palindrome (Scattered Palindrome)
Given a list of strings strings. For each string s, compute how many non-empty substrings of s c...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
