You are viewing a single comment's thread. Return to all comments →
Simple Python Solution:
def smallestSizeSubsequence(n, A): total = sum(A) result = 0 if total%2 == 0 else 1 if len(A)>1 else -1 return result
Seems like cookies are disabled on this browser, please enable them to open this website
Parity Game
You are viewing a single comment's thread. Return to all comments →
Simple Python Solution: