Group Anagrams

Given an array of strings strs, group the strings that are anagrams of one another. The order of groups and the order of strings within a group do not matter.

Two strings are anagrams if and only i...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: