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.
Thanks for the tip :)
Functionally, there is no difference. However, using maketrans in the encode and decode methods will perform the computation every time something is encoded or decoded (or perform an additional check on whether it has been), whereas using it in the instantiation will perform the computation only during instantiation.
So performing the calculation during instantiation is better performance-wise if you're doing a lot of encoding and decoding.
Is there a difference between using "maketrans" in the "encode" and "decode" methods or in the instantiation?
You guys forfeit algorithm creation.
rofl
I really appreaciate this Kata. Thank you senseis ;)
This comment is hidden because it contains spoiler information about the solution