Maximize Unique Characters from Words
Company: Meta
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Onsite
Overview: This question evaluates a candidate's ability to reason about combinatorial constraints and set disjointness while maximizing unique coverage, testing competencies in algorithm design, combinatorics, and constraint-based optimization.
Read the full Meta Software Engineer interview experience this question came from
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 score is 4.
Input: (["aa","bc"],)
Expected Output: 2
Explanation: Skip duplicate-letter word.
Hints
- Clarify edge cases before coding.
- Keep the return value deterministic.