We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Permuting Two Arrays
- Discussions
Permuting Two Arrays
Permuting Two Arrays
Sort by
recency
|
242 Discussions
|
Please Login in order to post a comment
C# Solution
A.Sort(); B.Sort(); B.Reverse();
Here is - HackerRank Permuting Two Arrays problem solution in Python, Java, C++, C and javascript programming
kotlin: A.sort() B.sortDescending() return if ((A.indices).none { A[it] + B[it] < k }) "YES" else "NO"
Possible error in the explanation section? Should it not be B0 not B1 twice?