You are viewing a single comment's thread. Return to all comments →
Python
def twoArrays(k, A, B): A.sort() B.sort() for i in range(0,len(A)): if A[i]+B[len(A)-i-1] < k: 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 →
Python