Given:
{1,2,3} Expected result:
{1,2,3}, {1,2},{1,3},{2,3}, {1},{2},{3} So I want basically ALL possible combinations in a list ( but including all possible combinations of - when every element is removed ).
I hope you get what I mean ;)
Question: Which algorithm achieves this?