
区间和
文章平均质量分 84
jmspan
这个作者很懒,什么都没留下…
展开
-
LeetCode 327. Count of Range Sum(区间和计数)
原题网址:https://leetcode.com/problems/count-of-range-sum/Given an integer array nums, return the number of range sums that lie in [lower, upper] inclusive.Range sum S(i, j) is defined as the su原创 2016-04-28 00:32:14 · 3758 阅读 · 0 评论 -
LeetCode 370. Range Addition
原题网址:https://leetcode.com/problems/range-addition/Assume you have an array of length n initialized with all 0's and are given k update operations.Each operation is represented as a triplet:原创 2016-06-30 02:52:03 · 3647 阅读 · 0 评论 -
LeetCode 363. Max Sum of Rectangle No Larger Than K(矩阵和)
原题网址:https://leetcode.com/problems/max-sum-of-sub-matrix-no-larger-than-k/Given a non-empty 2D matrix matrix and an integer k, find the max sum of a rectangle in the matrix such that its sum is原创 2016-06-23 02:55:19 · 4022 阅读 · 0 评论