Given an array of distinct integers A, return all possible subsets.
Note: The list should not contain any duplicate subsets.
A: [1, 3, 2]
Subsets: [
[],
[1],
[1, 2],
[1, 2, 3],
[1, 3],
[2],
[2, 3],
[3]
]
The first line contains an integer ‘T’, denoting the number of test cases.
For each test case, the input has two lines.
For each test case, the output has the following lines:
3
1
5
2
2 4
3
1 3 2
2
5
4
2
2 4
4
8
1
1 2
1 2 3
1 3
2
2 3
3
1 <= T <= 10
1 <= n <= 10
1 <= Ai <= 100