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.
python new test framework
python new test framework
Hello,
I am using C++ and I have a failure in the random test for:
If the missing element is 999 (so 3 digits), then the sequence starts with 641. The second number is 854.
Since:
I think the correct result should indeed be -1! Or I am not understanding the kata correctly?
All languages should have such sample and fixed tests to prevent solutions with wrong inclusive-upper-bound checking. (
<= b
instead of< b
)a = 8, b = 888
-->13
C#: method name should be
PascalCase
(Please refer to implementation of backward compatibility here )C#
method name should be
PascalCase
(Please refer to implementation of backward compatibility here )should use
string
instead ofString
typeProlog translation
For C, if n is a + b and both a and b are non-negative, then why does the function pass in a signed value (and why is it "const")? That needless complictes this clever problem.
C Translation
in c++ input parameter has type long, but 10e10 numbers can't fit into long, maybe change to long long?
It would be helpful to either add some small random tests, or provide a message that identifies the first element where actual differs from expected. Currently, if actual and expected are almost identical, debugging is quite difficult.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
There should be fixed and sample tests like this one where the first string has 3 or more occurences of the same character that is not in the second string within all languages
Probability of random tests to generate such cases should also be increased
Loading more items...