You are viewing a single comment's thread. Return to all comments →
def fairRations(B): # Write your code here c = 0 n = len(B) for i in range(n - 1): if B[i] % 2 != 0: B[i + 1] += 1 c += 2 return "NO" if B[-1] % 2 != 0 else str(c)
Seems like cookies are disabled on this browser, please enable them to open this website
Fair Rations
You are viewing a single comment's thread. Return to all comments →