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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Ah yeah initializing volume to zero makes more sense. My loop looks kind of awkward with the increment happening first. Tehcnically I don't think it works for n = 1 haha.
Yeah I would agree. I just iterated across each int as a string looking for 3 consecutive characters, and then 2 for the second.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Yeah this is critical. For lists that are obscenely large, say millions of elements, this could take up to minutes to run.