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
- L3
Problem
Given a list of strings, group strings that have the same set of distinct characters (not the same multiset). Return a list of groups, where groups are ordered by the first appearance of any member, and within each group members appear in input order.
Summary
Words sharing the same letters belong to the same clan.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.