Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
Great solution except it doesn't account for null values of str and when str="" it will still be encrypted/decrypted n times (which does nothing)
I realize that the solution holds since the test cases do not give str as null and n <> 0 ... which is a shame.
But great solution
F# translation