Math, asked by AmmuShivani1484, 11 months ago

Find sum of mean of elements of two array such that sum is max in c++

Answers

Answered by Anonymous
0

Answer:

Naive Approach: A simple approach is two run two nested loops to generate all possible pairs and find the pair with maximum sum. Time Complexity: O(N*M), where N is the length of first array and M is the length of second array. ... So, the task reduces to find maximum elements from both the arrays and print their sum.

Similar questions