724. 寻找数组的中心下标
寻找数组的中心下标
- 难度:
easy - 原始链接: https://leetcode.cn/problems/find-pivot-index
- 标签:
前缀和
解法一: 前缀和
1 | func pivotIndex(nums []int) int { |
easy前缀和1 | func pivotIndex(nums []int) int { |
Update your browser to view this website correctly.&npsb;Update my browser now