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.
I thought something fishy with these Dijkstra solutions,
but if max degree is 4 there's not much fine for multiple pushing
of the same node into the heap.
And if max dimension for a test case is 50, you can also get away
with running a linear search for the minimum on a list instead
of a heap :D
Instructions are not clear.
Does the monster makes a move after every move you make?
And what does:
Means?
Description says:
Anyway, good job buddy.
You did reproduce my example. In this kata the hands should be ordered from strong to weak.
Returned value for:
Should be False.
Suits are irrelevent in this example.
This comment is hidden because it contains spoiler information about the solution
Intresting tricks here, but the test cases must be really weak
if this one pass.
It does not properly distinguish between hands of the same caliber:
'QS QD QH QC 3C' < 'JS JD JH JC AC' => False
Oh brother...(sigh)
“All happy families are alike; each unhappy family is unhappy in its own way.”
It's because the Test cases provided are ridicously small.
With suffiently large string as argument this function will choke.
Actually the complexity of this solution is quadratic (very bad!).
This comment is hidden because it contains spoiler information about the solution
test for "("*1000000 + ")"*1000000
I see some solutions with ridiculous complexity
O(n^2) when linear is possible.