摘要: Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return: 思路1: 用collections.defaultd 阅读全文
posted @ 2017-03-01 12:21 lettuan 阅读(115) 评论(0) 推荐(0)
摘要: Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the 阅读全文
posted @ 2017-03-01 12:15 lettuan 阅读(170) 评论(0) 推荐(0)