+ 1
A program to give all the subsets of a set initialised as a table. In C or C++
5 odpowiedzi
+ 2
Gimmie example
like output
+ 2
This is similar to permutation of string. Let's say you have ABC. Permutations are A, B,C, AB,B C, AC, ABC
+ 1
and the output sorry
0
https://stackoverflow.com/questions/36398954/power-set-of-large-set
You may use any of the algorithms listed here.
- 1
example : the user inputs 123 and the input is
(1), (2), (3), (1, 2), (1,3), (2,3), (1,2 3)