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
i cant understand what should i do if there are 2 coins in the same spot
like---->>
g = {0: {1, 2}, 1: {0, 4}, 2: {0}, 3: {3}, 4: {1, 4}, 5: set()}
u1 = 2
u2 = 2
u3 = 0
should 3
why not None
how....!!
Reraising issue from below:
The test suite is pretty bad.
Why ~6100 assertions? That consumes ~2GB of memory on my browser, reduce it to 300-500. Other than that result of ~6000 assertions is always False.
Why the result is
(bool, tuple)
? when it can be just atuple
and for unsolvable cases:()
.This test from sample tests is misleading:
Why the truth value is
None
, when an assignment is possible(given that you've usedtruth = True
for the other solvable cases in the same place)?Inconsistent performance requirements across languages: max 4x2 in Python vs 25+ lengths in Haskell.
( Haskell )
Is this example test correct? I think
Just []
would, or should, also be a correct answer.( I haven't checked the submit tests. It's possible it's in there also. )
It looks like the Python original uses a legacy Python version, a legacy testing framework, inadequate test headers, and very limited testing.
Also, as suggested elsewhere, please mention in the description that variable names will always be single letters.
There's a world to be gained there.
Note that I don't speak Python, so some of the above may be just plain wrong. But I sincerely doubt all of it is.
Depending on performance requirements, my estimated rating might be anything from 6 to 3. It'd be worth it to specify any such requirements, or lack thereof. That would make it easier to settle on a design before starting implementing.
Haskell random tests:
This comment is hidden because it contains spoiler information about the solution
Hi...