News

The equilibrium index of an array is an index such that the sum of elements at lower indexes is equal to the sum of elements at higher indexes. Example Input: arr = [-7, 1, 5, 2, -4, 3, 0] Output: 3 " ...
The equilibrium index of an array is an index such that the sum of elements at lower indexes is equal to the sum of elements at higher indexes. Example Input: arr = [-7, 1, 5, 2, -4, 3, 0] Output: 3 " ...