leetCode
notlcry
这个作者很懒,什么都没留下…
展开
-
LeetCode-(1) Two Sum
问题地址:https://oj.leetcode.com/problems/two-sum/ 问题描述: Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices...原创 2014-12-05 11:02:46 · 161 阅读 · 0 评论 -
LeetCode-(2) Median of Two Sorted Arrays
问题描述:There 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(log (m+n)). 思路: 1. 在2个有序的数组中找中值,那么可以...原创 2014-12-12 08:39:20 · 200 阅读 · 0 评论