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.
Hey folks,
I solved this problem by sorting the arrays A and B, ascending and descending, then checking the addition of those values by index with k. Please help me with some other alternative solutions, if any. Here is my code in javascript,
Permuting Two Arrays
You are viewing a single comment's thread. Return to all comments →
Hey folks, I solved this problem by sorting the arrays A and B, ascending and descending, then checking the addition of those values by index with k. Please help me with some other alternative solutions, if any. Here is my code in javascript,