摘要: Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.public class Solution { public ArrayList anagrams(String[] strs) { ArrayList result = new ArrayList(); if(strs.length > 0){ HashMap > words = new HashMap>(); for(String... 阅读全文
posted @ 2014-02-09 12:44 Averill Zheng 阅读(122) 评论(0) 推荐(0) 编辑