Question: 2. We are given two arrays, A and B, containing n positive integers each. You can permute each of the two arrays in any fashion

2. We are given two arrays, A and B, containing n positive integers each. You can permute each of the two arrays in any fashion such that after the permutation, we have two permuted arrays A' and B' corresponding to arrays A and B respectively. Give an efficient algorithm to compute the maximum possible value of (A,[i] + B'[i]). TL
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
