You are viewing a single comment's thread. Return to all comments →
Test case 3 and 4 are timed out for me. My code is in python as bellow. Do some one know what is wrong here?
for i in range(1,len(a)): if sum(a[:i]) == sum(a[i+1:]): return "YES" else : 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 →
Test case 3 and 4 are timed out for me. My code is in python as bellow. Do some one know what is wrong here?