摘要: Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corner (row2 阅读全文
posted @ 2016-04-19 23:20 周洋 阅读(258) 评论(0) 推荐(0) 编辑
摘要: Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Note: 前缀和的应用,很简单。 阅读全文
posted @ 2016-04-19 15:32 周洋 阅读(209) 评论(0) 推荐(0) 编辑