摘要: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo... 阅读全文
posted @ 2014-10-01 09:19 supernigel 阅读(90) 评论(0) 推荐(0) 编辑
摘要: here are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O... 阅读全文
posted @ 2014-09-29 22:09 supernigel 阅读(149) 评论(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 nu... 阅读全文
posted @ 2014-09-27 22:09 supernigel 阅读(93) 评论(0) 推荐(0) 编辑