From 85a68dd1e8ad5c252e1065716e4c94a95d44e739 Mon Sep 17 00:00:00 2001 From: Andrea Piombo Date: Sun, 30 Jul 2023 12:50:05 +0200 Subject: [PATCH] Update Python-Array-Equilibrium-Index.py Added text block --- Python-Array-Equilibrium-Index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Python-Array-Equilibrium-Index.py b/Python-Array-Equilibrium-Index.py index 81e42ea6092..0aac8fbf995 100644 --- a/Python-Array-Equilibrium-Index.py +++ b/Python-Array-Equilibrium-Index.py @@ -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. @@ -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