> For the complete documentation index, see [llms.txt](https://cai-sen-se.gitbook.io/leetcode/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cai-sen-se.gitbook.io/leetcode/1001-2000/1909.-shan-chu-yi-ge-yuan-su-shi-shu-zu-yan-ge-di-zeng.md).

# 1909. 删除一个元素使数组严格递增

<https://leetcode-cn.com/problems/remove-one-element-to-make-the-array-strictly-increasing/>

## 解法一：暴力

```python
class Solution:
    def canBeIncreasing(self, a: List[int]) -> bool:
        n = len(a)
        b = []
        #尝试将a的每个位置去掉，得到剩下数组b，看是否递增
        
        for i in range(n):
            b = []
            
            for j in range(n):
                if j == i: 
                    continue
                b.append(a[j])
            ok = True
            for j in range(1, n-1):
                if b[j] <= b[j-1]:
                    ok = False
            if ok:
                return True #找到一个符合的b就返回真
        return False    #一个都找不到
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cai-sen-se.gitbook.io/leetcode/1001-2000/1909.-shan-chu-yi-ge-yuan-su-shi-shu-zu-yan-ge-di-zeng.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
