Type | Name | Description | Approach |
---|---|---|---|
Problem |
Group Anagrams |
To group the Anagrams strings, Input : Array of Strings, Output : Array of arrays having Anagrams strings. |
for-loop to iterate strings of given array. Map to store unique sorted string as key and array of all string having same sorted string as value . Once Done return Array.from(map.values()) which contains array of arrays having Anagrams strings. |
Created
January 16, 2025 07:33
-
-
Save AnkitMaheshwariIn/2ee74b1cede8942eb8b46728d98c89b9 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment