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 #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