Leetcode
胡望望学IT
这个作者很懒,什么都没留下…
展开
-
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 of the two numbers such that they add up to the target, whe原创 2015-05-17 14:35:29 · 300 阅读 · 0 评论 -
Maximum Subarray
public class Solution { public int maxSubArray(int[] nums) { int start=0; int end=nums.length-1; return FindMax(nums,start,end); } public int FindMax(int[] num原创 2015-06-03 13:29:28 · 361 阅读 · 0 评论