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.
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}
Function id() always returns the even number. Your function is not random and always return True.
You can't do this... Function id() always returns the even number. Your function is not random and always return True.
what is this ?
no,no and no again. Don't use string concatenation, this is bad for performances.
without module
Can you approve my decision?
It was hard, I spent 2 days and 2 nights, but I made it. It's awesome!
Good for everyone
thanks for the tip
Yeap, It's the best I've seen.
There have to be random tests for this solution to be impossible
The original instrunctions were:
dammit, you got me!
That's awesome!
Dam, best one so far in length.
Loading more items...