You are viewing a single comment's thread. Return to all comments →
def balancedSums(arr):
left = 0 right = sum(arr) for i in range(len(arr)): right -= arr[i] if left == right: return 'YES' left += arr[i] return 'NO'
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Array
You are viewing a single comment's thread. Return to all comments →
def balancedSums(arr):