My LeetCode grinding. Trying to do a problem a day.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617
  1. Given an array of strings, group anagrams together.
  2. Example:
  3. Input: ["eat", "tea", "tan", "ate", "nat", "bat"],
  4. Output:
  5. [
  6. ["ate","eat","tea"],
  7. ["nat","tan"],
  8. ["bat"]
  9. ]
  10. Note:
  11. All inputs will be in lowercase.
  12. The order of your output does not matter.