You are viewing a single comment's thread. Return to all comments →
fun twoArrays(k: Int, A: Array<Int>, B: Array<Int>): String { A.sortDescending() B.sort() for(i in 0..A.size - 1) { if((A[i] + B[i]) < 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 →