Find that index for which sum of all the elements before it will be equal to sum of all elements after it.
Answers
Answered by
0
Step-by-step explanation:
Equilibrium index of an array. 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. For example, in an array A: Example : Input: A[] = {-7, 1, 5, 2, -4, 3, 0}
Similar questions