-
-
Save ssartell/d3bd12b71d7cf03f65ca6560d2e2905e 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 #27 ******************************************************* | |
Description: Given a list of integers, fill the consecutive integers between each adjacent pair. | |
Samples: | |
[1, 4] => [1, 2, 3, 4] | |
[5, 3] => [5, 4, 3] | |
[1, 3, 1] => [1, 2, 3, 2, 1] | |
************************************************************************/ | |
var ints = new [] {1, 5, 2, 7}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment