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.
Haskell: random tests should not be in the sample tests
Java Translation
Groovy Translation
JavaScript: failure messages are confusing and extremely unhelpful. For example, one of assertions complains about a missing
#
character while it checks something totally different.Python doesn't test inputs that only contain spaces. Furthermore, the description is at best (I think it disagrees with the ref solution and isn't ambiguous,
'#'
is not empty) ambiguous about what that should return as a string containing only '#' is not empty, and yet the ref solution says the result should be False.Random tests in following languages do not generate negative numbers:
COBOL ( would require changing
INPUT-VAR
from9(06)
toS9(06)
, same goes forRESULT
fromX(06)
toX(07)
to accommodate for the negative sign; so all existing solutions would be invalidated )JavaKotlinPythonEmpty line ?
Changes ?
Output ?
In the description, it says:
While implementing my solution in Scala, I initially returned
"false"
as a string for this case. However, the tests were expecting an empty string instead. I suggest updating the description to specify thatfalse
should be represented as an empty string in the output.python translation
There should be tests of single-character strings like
#
,A
anda
to invalidate certain solutionsThis comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
C# translation ready! Please review and approve.
This comment is hidden because it contains spoiler information about the solution
I guess tests should also check fo boundary values:
Loading more items...