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
Thank you so much :) That's so kind :)
I wanted the code to be performant, not just to do the naive approach of "add-everything-then-do-modulo" ;) Instead I aimed to save on computational complexity and on memory.
In hindsight, I should have used a hashset instead of a tuple for the "odds", but it's such a small set, it probably doesn't matter.
Anyway, thanks again :)
@fakeID I'm sorry, I don't follow. What do you mean?
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
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution