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.
there's no need to actually have the numbers all at once, i.e. no need for the vector at all.
even with SSO eliminating heap usage, using
to_string
is much more work than necessary, when a simple loop and modulus operation works fine.small string optimisation means that this should (probably?) never allocate on the heap.
I dont think this answer is best practice, but this comment thread starter is about as mislead as they thought the answer was.