摘要: twosum问题leetcodetwusumjava 1. 题目描述Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solut... 阅读全文
posted @ 2017-08-25 13:37 流泉滴沙 阅读(237) 评论(0) 推荐(0)
摘要: longest substring问题最长子串滑动窗口HashMap 1.题目描述Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "abc", which the length is 3.G... 阅读全文
posted @ 2017-08-25 10:33 流泉滴沙 阅读(444) 评论(0) 推荐(0)