Rubrik | OA 2019 | Scatter Palindrome
Anonymous User
21052

Find all scatter palindrome strings inside given string. A scatter palindrome is defined as a string in which characters can be shuffled to obtain a palindrome.

Example:

Input: "aabb"
Output: [a, aa, aab, aabb, abb, b, bb]
Comments (10)