Computer Science, asked by triggerAVS8917, 11 months ago

Total number of subsets that contains an array element

Answers

Answered by shreshtha63
0

Answer:Given an array arr[] of integer elements, the task is to find the total number of sub-sets of arr[] in which product of the elements is even.

Examples:

Input: arr[] = {2, 2, 3}

Output: 6

All possible sub-sets are {2}, {2}, {2, 2}, {2, 3}, {2, 3} and {2, 2, 3}

Input: arr[] = {3, 3, 3}

Output: 0

Similar questions