mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-10 04:06:51 +08:00
添加0724寻找数组的中心索引 Python版本
This commit is contained in:
@ -89,7 +89,7 @@ class Solution {
|
||||
|
||||
## Python
|
||||
|
||||
```python
|
||||
```python3
|
||||
class Solution:
|
||||
def pivotIndex(self, nums: List[int]) -> int:
|
||||
numSum = sum(nums) #数组总和
|
||||
|
Reference in New Issue
Block a user