Skip to content

Instantly share code, notes, and snippets.

@ssartell
Created May 13, 2019 20:56
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/ebb4c020ad8269d4b421c35f1942707f to your computer and use it in GitHub Desktop.
Save ssartell/ebb4c020ad8269d4b421c35f1942707f to your computer and use it in GitHub Desktop.
/* LINQ Puzzle #18 *******************************************************
Summary: Given a list of lists of integers, find the common integers that appear in every list.
Sample: {
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
{ 0, 2, 4, 6, 8 },
{ 1, 4, 7, 8 }
} => { 4, 8 }
************************************************************************/
var lists = new [] {
new [] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
new [] { 0, 2, 4, 6, 8 },
new [] { 1, 4, 7, 8 }
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment