You are viewing a single comment's thread. Return to all comments →
def check(a,n): if n == 1: return "YES" l = 1 r = n-2 sum_right = a[n-1] sum_left = a[0] while l < r and r >= l : if sum_left
Sherlock and Array
You are viewing a single comment's thread. Return to all comments →
def check(a,n): if n == 1: return "YES" l = 1 r = n-2 sum_right = a[n-1] sum_left = a[0] while l < r and r >= l : if sum_left