Skip to content

Commit 85a68dd

Browse files
authored
Update Python-Array-Equilibrium-Index.py
Added text block
1 parent 2178236 commit 85a68dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python-Array-Equilibrium-Index.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Array Equilibrium Index
1+
"""Array Equilibrium Index
22
Send Feedback
33
Find and return the equilibrium index of an array. Equilibrium index of an array is an index i such that the sum of elements at indices less than i is equal to the sum of elements at indices greater than i.
44
Element at index i is not included in either part.
@@ -13,7 +13,7 @@
1313
7
1414
-7 1 5 2 -4 3 0
1515
Sample Output :
16-
3
16+
3 """
1717
def equilibrium(arr):
1818

1919
# finding the sum of whole array

0 commit comments

Comments
 (0)