摘要: There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).Example 1:nums1 = [1, 3] nums2... 阅读全文
posted @ 2016-11-26 13:31 copperface 阅读(261) 评论(0) 推荐(0) 编辑
摘要: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link... 阅读全文
posted @ 2016-11-26 13:30 copperface 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 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.Given "bbbbb", the answer is "b", with the l... 阅读全文
posted @ 2016-11-26 13:30 copperface 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 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 solution.假设每个输入只有一个... 阅读全文
posted @ 2016-11-26 13:29 copperface 阅读(565) 评论(0) 推荐(0) 编辑