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
Ah, I managed to miss that tab. Duplicated the trivial tests into the sample test, and wrote a random test which should disqualify extremely slow solutions.
not not id(object())//3%2
btw, I'm aware this isn't at all random, my initial version of this was an instance of malicious compliance with the tests. In fact, you can make this method perform hilariously badly:
In [1]: d = {True: 0, False: 0}
In [2]: for _ in range(1000000): d[not not id(object())//3%2] += 1
In [3]: d
Out[3]: {True: 0, False: 1000000}
In [4]: for _ in range(1000000): d[not not id(object())//3%2] += 1
In [5]: d
Out[5]: {True: 0, False: 2000000}
In [6]: for _ in range(1000000): d[not not id(object())//3%2] += 1
In [7]: d
Out[7]: {True: 1000000, False: 2000000}