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 #21 ******************************************************* | |
Summary: Given a list integers, generate every sublist. A sublist is any consecutive sequence that | |
appears in the original list. | |
Sample: { 1, 2, 3 } => { | |
{1}, | |
{2}, | |
{3}, | |
{1, 2}, | |
{2, 3}, | |
{1, 2, 3} | |
} | |
************************************************************************/ | |
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