Loading...

The Character Clans

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium
Seniority
junior, mid

Problem

Given a list of words, group them by their unique character sets - words that contain exactly the same set of distinct characters should be placed in the same group. Return the groups as a list of lists. Order within groups and order of groups does not matter.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.