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.
in C, the initial code should be a function definition, not a declaration
This comment is hidden because it contains spoiler information about the solution
It is not specified what happens in the case of
John John
andJohn
, which happens frequently in random tests.It's also not specified what happens if one name doesn't have a middle name, e.g
John A Doe
vsJohn Doe
.Hi,
You need more edge test cases to avoid solutions, such as my python's solution, which can't work when there is a chess blocking another's line of sight, passing the test.
This comment is hidden because it contains spoiler information about the solution
You should use a specific length bound for each language.
For example in Python, I have obtained a 220-character-long solution, which is far below initial requirements of 280 characters.
No semicolons makes it impossible to use for loops, is that on purpose?
For people who don't know chess, it might be nice to specify that pawns take forward diagonally.
This condition is totally wrong, for example, results are different for
Without specifying the number of substitutions, any substitutions are valid because you can argue that the default language is ignoring some of the substitution inputs used by the other substitions. (And in the random tests some substition texts starting from
2
are considered valid). So currently it's unclear what logic should be applied to this validation.The format of
content
needs to be elaborated. Besides, some requirements are stated but not explained, like what is a substitution? I can only see something like%1$@
in the inputs, which doesn't explain which part of it constitutes a substitution.Hi,
Python:
snake_case
. You can use atry ... except
block at the top of the test suite to keep backward compatibility (and don't forget to update the sample tests and complete solution):connect
>size
(= impossible to win); and cases where the number of moves is insufficient for any player to win. Both translate to"draw"
, but still...