leetcode.jp 博客
本网站所有文字及图片内容均来自网络,每周定时更新,仅供个人学习与研究,请勿用于商业用途。谢谢合作。

49. Group Anagrams

Given an array of strings, group anagrams together.

Example:

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

Note:

Difficulty:

Medium

Lock:

Normal

Company:

Adobe Affirm Alibaba Amazon Apple Bloomberg Booking.com Docusign eBay Facebook Goldman Sachs Google Hulu Intuit Mathworks Microsoft Nutanix Oracle Qualtrics Salesforce Snapchat Tesla Twilio Uber Visa VMware Walmart Labs Wish Yahoo Yandex Yelp Zulily

Solution(Chinese):

LEETCODE 49. Group Anagrams 解题思路分析