You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
355 B
355 B
id | title | topics | difficulty | source | |
---|---|---|---|---|---|
8 | Pivot Index |
|
easy | https://leetcode.com/problems/find-pivot-index/ |
Question
'''
Given an array of integers, return the pivot index of this array.
A pivot index is the index where the sum of the numbers to its left is equal to the sum of the numbers to its right:
[7, 2, 3, 4] => 1
'''