摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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.假设每个输入只有一个... 阅读全文