Given an array of strings, categorize them into groups where each group consists of strings that contain the same characters, regardless of their order.
Explanation: The strings 'cat', 'tac', and 'act' form one group because they all contain the characters 'c', 'a', and 't'. Similarly, 'dog' and 'god' form another group, while 'good' is in its own group due to its unique character composition.
Group strings by character composition
No dry run loaded.
🚀 Practice this problem
Run code, get AI hints & track streak