mirror of
https://github.com/20kaushik02/leetcode-gulag.git
synced 2025-12-06 07:54:07 +00:00
15 lines
319 B
C++
15 lines
319 B
C++
#include "soln.hpp"
|
|
|
|
int main() {
|
|
vector<int> nums{1,2,3};
|
|
Solution soln;
|
|
vector<vector<int>> answer = soln.subsets(nums);
|
|
for(int i = 0; i < answer.size(); i++) {
|
|
cout << "Subset " << (i+1) << ": ";
|
|
for(int j = 0; j < answer[i].size(); j++) {
|
|
cout << answer[i][j] << " ";
|
|
}
|
|
cout << endl;
|
|
}
|
|
return 0;
|
|
} |