leetcode之数组指定位置间的数之和
题目:
Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.Example:
Given nums = [-2, 0, 3, -5, 2, -1]sumRange(0, 2) -> 1
sumRange(2, 5) -> -1
sumRange
原创
2015-11-15 22:17:14 ·
270 阅读 ·
0 评论