Math, asked by Kuldeep5379, 1 year ago

Consider the set s = {8, 5, 1, 13, 34, 3, 21, 2}. Akshay lists all the two element subsets of s and takes the larger of the elements in each set. If he sums all these numbers, the sum he will obtain is __________

Answers

Answered by itzJitesh
4

Answer:

It is given that sum of array elements is small. ... Input : arr[] = {1, 2, 3} Output : 0 1 2 3 4 5 6 Distinct subsets of given set are {}, {1}, ... distSumRec(arr, n, sum ...

Answered by divyas7485
0

Answer:

19

Step-by-step explanation:

(5,8)(8,1)(1,13)(13,34)(21,3)(3,2)

(5,1)(5,13)(5,34)(5,3)(5,2)

8,13)(8,34)(8,3)(8,2)(8,21)

1,34)(1,3)(1,2)(1,21)(12,3)13,2)(13,21)(34,3)(34,2)(34,21)(21,2)

sum of greater no. = 397

3+9+7=19

Similar questions