303. Range Sum Query - Immutable

Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.web Example: Given nums = [-2, 0, 3, -5, 2, -1]svg sumRange(0, 2) -> 1 sumRange(2, 5) -> -1 sumRang
相關文章
相關標籤/搜索