307. Range Sum Query - Mutable
Posted tobeabetterpig
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了307. Range Sum Query - Mutable相关的知识,希望对你有一定的参考价值。
Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. The update(i, val) function modifies nums by updating the element at index i to val. Example: Given nums = [1, 3, 5] sumRange(0, 2) -> 9 update(1, 2) sumRange(0, 2) -> 8
以上是关于307. Range Sum Query - Mutable的主要内容,如果未能解决你的问题,请参考以下文章
307. Range Sum Query - Mutable
Leetcode 307. Range Sum Query - Mutable
307. Range Sum Query - Mutable