
累积
文章平均质量分 81
jmspan
这个作者很懒,什么都没留下…
展开
-
LeetCode 304. Range Sum Query 2D - Immutable(矩阵求和)
原题网址:https://leetcode.com/problems/range-sum-query-2d-immutable/Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lowe原创 2016-04-19 07:45:22 · 757 阅读 · 0 评论 -
LeetCode 296. Best Meeting Point(最佳见面点)
原题网址:https://leetcode.com/problems/best-meeting-point/A group of two or more people wants to meet and minimize the total travel distance. You are given a 2D grid of values 0 or 1, where each 1 m原创 2016-04-16 14:26:39 · 4592 阅读 · 1 评论 -
LeetCode 362. Design Hit Counter(计数器)
原题网址:https://leetcode.com/problems/design-hit-counter/Design a hit counter which counts the number of hits received in the past 5 minutes.Each function accepts a timestamp parameter (in seco原创 2016-06-23 00:45:16 · 2390 阅读 · 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 评论