Maximize unique characters from a word list
Company: Meta
Role: Machine Learning Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Onsite
Quick Answer: This question evaluates algorithmic problem-solving skills focused on combinatorial subset selection and character-uniqueness constraints in strings, within the Coding & Algorithms domain.
Constraints
- Inputs are Python literals matching the function signature.
- Return a deterministic exact-match value.
Examples
Input: (["un","iq","ue"],)
Expected Output: 4
Explanation: Best valid concatenation length is 4.
Input: (["aa","bc"],)
Expected Output: 2
Explanation: Words with duplicate internal letters are skipped.
Input: (["abcdefghijklmnopqrstuvwxyz"],)
Expected Output: 26
Explanation: All letters can be used once.
Hints
- Clarify edge cases before coding.
- Keep the return value deterministic.