Merge pull request #1655 from Damonfruit/master

修改了左闭又开区间的python代码
This commit is contained in:
程序员Carl 2022-09-21 20:04:49 +08:00 committed by GitHub
commit 996ca4955e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -220,7 +220,8 @@ class Solution:
(版本二)左闭右开区间
```class Solution:
```python
class Solution:
def search(self, nums: List[int], target: int) -> int:
if nums is None or len(nums)==0:
return -1