Total number of subsets that contains an array element
Answers
Answered by
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
English,
6 months ago
Social Sciences,
6 months ago
English,
11 months ago
Psychology,
11 months ago
Science,
1 year ago