Skip to content

Commit

Permalink
Update Python-Array-Equilibrium-Index.py
Browse files Browse the repository at this point in the history
Added text block
  • Loading branch information
Piombacciaio authored Jul 30, 2023
1 parent 2178236 commit 85a68dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Python-Array-Equilibrium-Index.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Array Equilibrium Index
"""Array Equilibrium Index
Send Feedback
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.
Element at index i is not included in either part.
Expand All @@ -13,7 +13,7 @@
7
-7 1 5 2 -4 3 0
Sample Output :
3
3 """
def equilibrium(arr):

# finding the sum of whole array
Expand Down

0 comments on commit 85a68dd

Please sign in to comment.