摘要: 题目: Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return: [ ["ate", "eat","tea"] 阅读全文
posted @ 2016-02-29 20:58 wxquare 阅读(187) 评论(0) 推荐(1) 编辑
摘要: 题目: Given two strings s and t, write a function to determine if t is an anagram of s. For example,s = "anagram", t = "nagaram", return true.s = "rat", 阅读全文
posted @ 2016-02-29 20:31 wxquare 阅读(188) 评论(0) 推荐(0) 编辑