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.
Precompute the length of the final string, generate it, then go and replace the chunks as needed. a
"".join()
is still somehow better, but if you keep increasing a string at each step, you will do a lot of reallocation every few steps.Glad you appreciate; doing concatenation is not necessarily the most performing way to achieve what you need to achieve, but it can work pretty fine :)