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