Permuting Two Arrays

  • + 0 comments

    kotlin: A.sort() B.sortDescending() return if ((A.indices).none { A[it] + B[it] < k }) "YES" else "NO"