Problem 766. Implement Solitaire cipher for N long deck.

Created by Doug Hull

Implement the solitaire cypher.

Given a starting permutation of numbers [1:N], deck, generate M values for the keystream. The small joker will be value N-1, the big joker will be N.

This is an update of this problem.

Tags

Problem Group

9 solvers submitted 16 solutions (1.78 solutions/solver).