1991. Find the Middle Index in Array
Description
**Input:** nums = [2,3,-1,8,4]
**Output:** 3
**Explanation:**
The sum of the numbers before index 3 is: 2 + 3 + -1 = 4
The sum of the numbers after index 3 is: 4 = 4**Input:** nums = [1,-1,4]
**Output:** 2
**Explanation:**
The sum of the numbers before index 2 is: 1 + -1 = 0
The sum of the numbers after index 2 is: 0ac
Last updated