摘要: Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return: Note: 映射关系如下: 代码如下: packag 阅读全文
posted @ 2016-04-17 12:07 wangb021 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng 阅读全文
posted @ 2016-04-17 11:09 wangb021 阅读(109) 评论(0) 推荐(0) 编辑