Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Equal Sides Of An Array python

def find_even_index(nums):
    for i in range(len(arr)):
        if sum(arr[:i]) == sum(arr[i+1:]):
            return i
    return -1
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Equal #Sides #Of #An #Array #python
ADD COMMENT
Topic
Name
3+2 =