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.
Oh well. You're right. But it's Python.
what's wrong with it running in O(n)?.
The instructions said nothing of that!
This comment is hidden because it contains spoiler information about the solution
I've seen this in almost every code posted for this. Which would be the best way to complete this task if not these?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
That's...geometric...
This is a level 8 challenge. Beginner level. As a beginner I don't even know what
O(n)
is : /relax bud
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 :)
as clean as it gets amazing code respect
@fakeID I'm sorry, I don't follow. What do you mean?
two plus two is four
minus one that's three, quick maths
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
Loading more items...