2016年7月22日

Continuous Subarray Sum

摘要: Given an integer array, find a continuous subarray where the sum of numbers is the biggest. Your code should return the index of the first number and 阅读全文

posted @ 2016-07-22 23:01 Sheryl Wang 阅读(160) 评论(0) 推荐(0) 编辑

Submatrix Sum

摘要: Given an integer matrix, find a submatrix where the sum of numbers is zero. Your code should return the coordinate of the left-up and right-down numbe 阅读全文

posted @ 2016-07-22 22:56 Sheryl Wang 阅读(373) 评论(0) 推荐(0) 编辑

Maximum Product Subarray

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

posted @ 2016-07-22 22:47 Sheryl Wang 阅读(128) 评论(0) 推荐(0) 编辑

导航