摘要: 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 当数据爱上科学 阅读(156) 评论(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 当数据爱上科学 阅读(111) 评论(0) 推荐(0) 编辑