Skip to content

Instantly share code, notes, and snippets.

@ssartell

ssartell/20.cs Secret

Created May 20, 2019 13:47
Embed
What would you like to do?
/* 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