You are viewing a single comment's thread. Return to all comments →
#Python 3 def balancedSums(arr): left = 0 right = sum(arr) for val in arr: right -=val if left == right: return "YES" left += val 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 →