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.
conversion to string and lookup in it can't be efficient
This comment is hidden because it contains spoiler information about the solution
In general, less code is always better. Less to maintain, less to go wrong. Also, the compiler does some optimisation when it sees these patterns to run them in the most efficient way.
There are some rare cases where you will need to write optimised code yourself because the compiler doesn't know how to optimise them. One example I can think of is nested loops.