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.
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?
python new test framework is required. updated in this fork
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
Random tests should also be categorized into specific groups generating the following edge cases respectively to prevent hardcoding of fixed tests in all languages
numbers less than 10
numbers below 100 ending with an
8
numbers consisting of only 9s
numbers with 2nd digit being a
9
, followed by zero, one or more9
s ('19930', '499999', '599982' etc.)There should be fixed tests in all languages as such:
The missing number being the last (n - 1)-digit number, for any n > 1 like:
9798100101102
There exists two or more consecutive missing numbers like:
65686970
The syntax highlighting in the description's code blocks is not working correctly, for clarity,
```Lua
in the description should be```lua
to enable itThe user solution and actual solution are swapped in the assertion.
Also the user solution is incorrectly assigned to the
expected
variable.Test framework documentation reference:
Scala translation
Nice kata.
Combinatorics tag.
Loading more items...