You are viewing a single comment's thread. Return to all comments →
Here is my Python solution!
def twoArrays(k, A, B): B.sort() for num1 in A: working = False for num2 in B: if num1 + num2 >= k: working = True B.remove(num2) break if not working: 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 →
Here is my Python solution!