摘要:
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... 阅读全文