-
-
Save ssartell/152eec0e3b7c4e096ab033a967f439f0 to your computer and use it in GitHub Desktop.
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 #10 ******************************************************* | |
Summary: Given an array of integers between 0 and 100, return a list of lists of consecutive integers. The output might be used to output ranges of consecutive numbers. | |
Sample Input: {1, 2, 4, 6, 7, 8, 20} | |
Sample Output: {{1, 2}, {4}, {6, 7, 8}, {20}} | |
************************************************************************/ | |
var ints = new [] { 1, 2, 3, 5, 7, 8, 9 }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment