Skip to content

Instantly share code, notes, and snippets.

@AnkitMaheshwariIn
Created January 16, 2025 07:33
Show Gist options
  • Save AnkitMaheshwariIn/2ee74b1cede8942eb8b46728d98c89b9 to your computer and use it in GitHub Desktop.
Save AnkitMaheshwariIn/2ee74b1cede8942eb8b46728d98c89b9 to your computer and use it in GitHub Desktop.
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment