You are viewing a single comment's thread. Return to all comments →
def larrysArray(A): count = 0 for i in range(len(A)): for j in range(i+1, len(A)): if A[i] > A[j]: count += 1 return 'YES' if count % 2 == 0 else 'NO'
Seems like cookies are disabled on this browser, please enable them to open this website
Larry's Array
You are viewing a single comment's thread. Return to all comments →