You are viewing a single comment's thread. Return to all comments →
def twoArrays(k, A, B): A = [x-k for x in A] A.sort(reverse = True) B.sort() for x in range(len(A)): if A[x] + B[x] <0: return "NO" return "YES"
Seems like cookies are disabled on this browser, please enable them to open this website
Permuting Two Arrays
You are viewing a single comment's thread. Return to all comments →