Max Strings | Amazon OA
Anonymous User
4046

Given N strings, choose the maximum number of strings such that in the overall chosen string's, each letter's count is even.

1 <= N <= 15
All letters are uppercase
Input
N = 5
Strings:
ABAB
ABF
CDA
AD
CCC

Output:
1,3,4,5

Explanation:
Choose the strings with index 1,3,4 and 5

How do you solve this question?

Comments (7)