TITLE:-
Print Subsets of Array
PROBLEM:-
Given an integer array (of length n), find and print all the subsets of input array.
Subsets are of length varying from 0 to n, that contain elements of the array. But the order of elements should remain same as in the input array.
Note : The order of subsets are not important. Just print the subsets in different lines.
Input format :
Constraints :
1 <= n <= 15
Sample Input:
Sample Output:
If you have any doubts then please let me know... ConversionConversion EmoticonEmoticon