-
-
Save ssartell/efb50dcedabeb2b81e08e9012de20968 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* LINQ Puzzle #20 ******************************************************* | |
Summary: Given a list integers, generate every combination of integers. | |
Sample: { 1, 2, 3, 4 } => { | |
{1}, | |
{2}, | |
{3}, | |
{4}, | |
{1,2}, | |
{1,3}, | |
{1,4}, | |
{2,3}, | |
{2,4}, | |
{3,4}, | |
{1,2,3}, | |
{1,2,4}, | |
{1,3,4}, | |
{2,3,4}, | |
{1,2,3,4}, | |
} | |
************************************************************************/ | |
var ints = new [] { 1, 2, 3, 4 }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment