You are given an integer array nums, composed of unique elements. Find its power set.
Power set is the collection of all possible subsets of a given set.
The result must not contain duplicates and can be in any order.
nums: [1, 2, 3]
Power Set: [[], [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 with the following:
For each test case, the output has m lines, where m is the number of subsets of nums.
Each line has space-separated integers denoting the subset.
2
2
1 2
3
1 2 3
1
1 2
2
1
1 2
1 2 3
1 3
2
2 3
3
1 <= T <= 10
1 <= n <= 10
1 <= numsi <= 10