Skip to content

Instantly share code, notes, and snippets.

@ssartell

ssartell/27.cs Secret

Created July 26, 2019 20:43
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/d3bd12b71d7cf03f65ca6560d2e2905e to your computer and use it in GitHub Desktop.
Save ssartell/d3bd12b71d7cf03f65ca6560d2e2905e to your computer and use it in GitHub Desktop.
/* 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