Print Subsets of Array .....
Print Subsets of Array
Send Feedback
Print Subsets of Array
Line 1 : Integer n, Size of array
Line 2 : Array elements (separated by space)
3
15 20 12
[] (this just represents an empty array, don't worry about the square brackets)
12
20
20 12
15
15 12
15 20
15 20 12
#include <iostream>using namespace std;#include "solution.h"
int main() { int input[1000],length; cin >> length; for(int i=0; i < length; i++) cin >> input[i]; printSubsetsOfArray(input, length);}
Comments
Post a Comment