2017年6月12日

(leetcode题解)Contains Duplicate

摘要: Contains Duplicate Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at lea 阅读全文

posted @ 2017-06-12 21:22 kiplove 阅读(196) 评论(0) 推荐(0) 编辑

(leetcode题解)Maximum Subarray

摘要: Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [-2,1,-3,4,-1,2, 阅读全文

posted @ 2017-06-12 20:08 kiplove 阅读(175) 评论(0) 推荐(0) 编辑

导航