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.
Approved
done
You're right I should clarify that if the current player's whole row is empty, then it should only skip his turn but the move is not skipped. (of course if both players whole row is empty, then end the game)
Also, if the current player's move points to an empty hole, but its whole row is not empty, then it will skip that move but not the players turn.
I'll update the description and reference solution, thank you
The random tests in Python have several issues:
2
instead of10
per the description.$[a,b]$
, which is not a guaranteed property of the generated matrices.Following that rule, all remaining moves would be skipped if the player's row was empty, because there are no valid moves.
Maybe so, or maybe the description is not very clear about this part. From the example, I read this rule that a move should be ignored in such case, but the player stays the same.
The reference solution in Python does not follow this rule, which can lead to unexpected failures in the random tests for solutions that do follow the rule.
Here's one such input:
Political correctness really is taking over, we have to inject pronouns into our Codewars katas xD
It seems that the performance version has looser performance requirements than I expected, because my refsol only performs a single optimization to trim the search space for common subsequences instead of the full DP implementation.
I've forked my fork, reverting the reference solution.
Remember to not make the refsol a spoiler for the performance version.
I've made a fork that addresses all of these along with updating the reference solution to be much more efficient.
Random tests in Haskell could use some work:
Char
, leading to pairs of strings like"G8\1100651\95058\SUB\\A\b"
and"\n\n"
expected: 0 but got: 3
, with no indication of what the numbers indicate.expected: True but got: False
, which again does not tell the solver what the actual problem is.the OP made an additional fork with making the description lang-agnostic, approved now
approved :D
Not a bad idea! Forked with the suggested description changes.
Loading more items...