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: All unnecessary comments should be removed from the full test suite.
Random tests is indeed faulty: it often assigns a value onto an already overloaded function, and expects the value to overwrite the entire overloaded function.
The kata has never specify cases such as
so we should not be expected to handle this (as we wouldn't know how to handle this anyway, it's unspecified, not tested in the fixed tests, and arguably out of scope of the kata).
Hi,
Just a suggestion but the tests may need to include cases other than "foo". Seem like I was able to hardcode it and still pass all the tests.
C++ fork that handles this and this issues.
Please, review and reject/accept.
While solving in C++ I (and, I believe, a lot of other solvers) had a problem with
rounded to two decimal places
part. It practically turns the kata into the guessing game. A problem is that the way you do that may change the result, and since this kata usesAssert::That(..., Equals(...))
for comparingdouble
s it actually creates a huge obstacle. E.g.Something should probably done with this, because it makes such a good kata practically unsolvable if you're unlucky enough.
In C++ random tests are not random at all. Please, check this out -> https://docs.codewars.com/languages/cpp/authoring#random-utilities
I found the description ambiguous to understand.
sequence advances with adding next natural number seq[natural number] times so now, 3 appears 2 times and so on
What does adding next natural number times to seq[natural number mean] ?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Need suggestions, feedback and testing.
This comment is hidden because it contains spoiler information about the solution