Given a list of strings, count the pairs (i, j) whose concatenation can be permuted into a palindrome.
Unlock detailed company stats for this questionUpgrade
Two strings form a complementary pair if some permutation of their concatenation is a palindrome. Pairs (i, j) and (j, i) count once.
Also asked as · Given an array of strings, count the pairs whose concatenation can be rearranged into a palindrome.
Community answers
No answers contributed by the community yet.
Related questions
Given a string of lowercase English letters, count the ways to add one letter to it so that the result is a permutation of some palindrome.Given a string S, determine if it can be converted into a palindrome by making at most one swap of two characters.Given a tree with a character on each node, count the paths from each query node toward the root whose characters can be rearranged into a palindrome.Related courses

Course

Course
Course
