PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Coding & Algorithms/Meta

Maximize Unique Characters from Words

Last updated: May 5, 2026

Quick 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.

  • medium
  • Meta
  • Coding & Algorithms
  • Software Engineer

Maximize Unique Characters from Words

Company: Meta

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Onsite

You are given a list of lowercase English words. Select a subset of the words such that no character appears more than once across all selected words. In other words, every selected word must have no duplicate letters internally, and any two selected words must have disjoint character sets. Return the maximum possible number of unique characters covered by a valid subset. Example: - Input: `["un", "iq", "ue"]` - Output: `4` - Explanation: Select `"un"` and `"iq"` to cover four unique characters. Clarify edge cases: - A word containing duplicate letters, such as `"aa"`, cannot be selected. - The empty subset is allowed and covers `0` characters. - Assume the alphabet is lowercase English letters unless otherwise specified.

Quick Answer: 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.

Related Interview Questions

  • Solve Tree Columns And Maze Variants - Meta (medium)
  • Solve Tree Diameter and Palindromic Counts - Meta (medium)
  • Simulate Monster Team Battles - Meta (hard)
  • Solve a Key-Door Corridor Maze - Meta (medium)
  • Solve Array Merge and Parentheses Cleanup - Meta (medium)
Meta logo
Meta
Mar 17, 2026, 12:00 AM
Software Engineer
Onsite
Coding & Algorithms
0
0

You are given a list of lowercase English words. Select a subset of the words such that no character appears more than once across all selected words. In other words, every selected word must have no duplicate letters internally, and any two selected words must have disjoint character sets.

Return the maximum possible number of unique characters covered by a valid subset.

Example:

  • Input: ["un", "iq", "ue"]
  • Output: 4
  • Explanation: Select "un" and "iq" to cover four unique characters.

Clarify edge cases:

  • A word containing duplicate letters, such as "aa" , cannot be selected.
  • The empty subset is allowed and covers 0 characters.
  • Assume the alphabet is lowercase English letters unless otherwise specified.

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More Meta•More Software Engineer•Meta Software Engineer•Meta Coding & Algorithms•Software Engineer Coding & Algorithms
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.