摘要: problem:Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.思路解析:使用hashmap来存储已排好序的字符串。注意i... 阅读全文
posted @ 2015-07-14 14:53 尾巴草 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Problems:Given an array of integers, every element appears three times except for one. Find that single one. Note:Your algorithm should have a linear ... 阅读全文
posted @ 2015-07-14 09:52 尾巴草 阅读(97) 评论(0) 推荐(0) 编辑