# 归档 2015年11月

## 题目描述：

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 ...`

## 题目描述：

Additive number is a positive integer whose digits can form additive sequence.

A valid additive sequence should contain at least three numbers. Except for the first two numbers, each subsequent number in the sequence must be the sum of ...

## 题目描述：

Given a 2D matrix, find the sum of the elements inside the rectangle defined by (row1, col1), (row2, col2).

The above rectangle (with the red border) is defined by (row1, col1) = (2, 1) and (row2, col2) = (4 ...

## 题目描述：

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 ...```

## 题目描述：

Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results.

Note: The input string may contain letters other than the parentheses ( and ).

Examples:

`"()())()" -> ["()()()", "(())()" ...`