Given an array of integers A, return all possible subsets. The array might contain duplicates.
Note: The list should not contain any duplicate subsets.
A: [1, 3, 3]
Subsets: [
[],
[1],
[1, 3],
[1, 3, 3],
[3],
[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 3
2
5
4
2
2 4
4
6
1
1 3
1 3 3
3
3 3
1 <= T <= 10
1 <= n <= 10
1 <= Ai <= 100