Skip to content

Instantly share code, notes, and snippets.

@ssartell

ssartell/9.cs Secret

Created May 29, 2018 20:25
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/939d281652568aea6d3c6dedaffbd0af to your computer and use it in GitHub Desktop.
Save ssartell/939d281652568aea6d3c6dedaffbd0af to your computer and use it in GitHub Desktop.
/* LINQ Puzzle #9 *******************************************************
Description: Given a "deck" (i.e. a collection of integers) perform a standard card shuffle. Split the deck in half and riffle the cards uniformly together.
Sample Input: {1, 2, 3, 4, 5};
Sample Output: {1, 4, 2, 5, 3};
************************************************************************/
// Given:
var input = Enumerable.Range(1, 15).ToList();
// Your solution goes here:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment