Skip to content

Instantly share code, notes, and snippets.

@ssartell

ssartell/20.cs Secret

Created May 20, 2019 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssartell/efb50dcedabeb2b81e08e9012de20968 to your computer and use it in GitHub Desktop.
Save ssartell/efb50dcedabeb2b81e08e9012de20968 to your computer and use it in GitHub Desktop.
/* 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