You are viewing a single comment's thread. Return to all comments →
PYTHON
def twoArrays(k, A, B): # Write your code here A.sort() B.sort(reverse=True) for (i,j) in zip(A,B): if ((i+j) < 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