godkingjay / LeetCode

LeetCode Solutions
MIT License
33 stars 65 forks source link

[PROBLEM] 49.Group Anagrams #214

Open Bharathlax-2005 opened 1 year ago

Bharathlax-2005 commented 1 year ago

Difficulty

Medium

Problem Description

Given an array of strings strs, group the anagrams together. You can return the answer in any order.

An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.

Example 1:

Input: strs = ["eat","tea","tan","ate","nat","bat"] Output: [["bat"],["nat","tan"],["ate","eat","tea"]]

Example 2:

Input: strs = [""] Output: [[""]]

Example 3:

Input: strs = ["a"] Output: [["a"]]

Constraints:

Link

https://leetcode.com/problems/group-anagrams/

Bharathlax-2005 commented 1 year ago

Can you please assign this issue to me @godkingjay?