摘要: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. F... 阅读全文
posted @ 2015-03-02 16:14 当数据爱上科学 阅读(159) 评论(0) 推荐(0)
摘要: Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, wh... 阅读全文
posted @ 2015-03-02 15:53 当数据爱上科学 阅读(115) 评论(0) 推荐(0)