Find the maximum number of palindromic strings obtainable by swapping letters.
Unlock detailed company stats for this questionUpgrade
Given an array of n lowercase strings, in one operation you can swap any two letters from any two distinct strings. Determine the maximum number of palindromic strings obtainable after any number of operations. Example: ['pass','sas','asps','df'] -> 3 ('paap','sas','ssss'). Constraints: 1 <= n <= 1000, string length <= 1000.
Format · Expedia SDE-2 OA, question 2 (medium).
Community answers
No answers contributed by the community yet.


