-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bfabbcb
commit 282f034
Showing
4 changed files
with
47 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* @lc app=leetcode id=307 lang=cpp | ||
* | ||
* [307] Range Sum Query - Mutable | ||
*/ | ||
|
||
// @lc code=start | ||
class NumArray | ||
{ | ||
public: | ||
vector<int> x; | ||
int sum; | ||
NumArray(vector<int> &nums) | ||
{ | ||
} | ||
|
||
void update(int index, int val) | ||
{ | ||
} | ||
|
||
int sumRange(int left, int right) | ||
{ | ||
} | ||
}; | ||
|
||
/** | ||
* Your NumArray object will be instantiated and called as such: | ||
* NumArray* obj = new NumArray(nums); | ||
* obj->update(index,val); | ||
* int param_2 = obj->sumRange(left,right); | ||
*/ | ||
// @lc code=end |
File renamed without changes.