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.
is there a way for a possible solution without recursion?
The random tests only go up to 20.
I would suggest using random.choice in main tests.
instead of
Ruby translation: https://www.codewars.com/kumite/5fe6342121683a0021e3adee/edit
Why not a decoder as well as an encoder?
The algorithm for that can be as elegant as for the encoder.