You are viewing a single comment's thread. Return to all comments →
Independently, here is 1-codeline Python3 solution that represents the same idea.
def twoArrays(k, A, B): return "YES" if all( sum(c)>=k for c in zip(sorted(A,reverse=True),sorted(B)) ) 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 →
Independently, here is 1-codeline Python3 solution that represents the same idea.