You are viewing a single comment's thread. Return to all comments →
Python
def twoArrays(k, A, B): return 'YES' if all([j+i >= k for i, j in zip(sorted(A, reverse=False),sorted(B, reverse=True))]) else 'NO'
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