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.
Resolved in above fork
Resolved
pravoozed
Python fork
snake_case
[issue]In python, the tests log the inputs for some reason (please remove all print functions from tests).
But more importantly, the tests are vulnerable to users mutating the input
In fact, mutating the input causes random tests to consistently throw an error.
Python: function name should be snake_case
Haskell translation
Please approve this fork addressing test suite maintainability, futureproofing, and robustness, and description consistency.
This is a good Kata! Maybe I'm just stupid, but it took me forever to notice that the 'Window' of the submarine was an 'O' and not a '0'. My RegExp suffers.
Having an example of "how not to do it" in the description is not working for me. I'd suggest just taking that out.
I have removed the reference solution from the fixed tests.
Fixed tests should have fixed expected values. Do not rely on a reference solution, as the "with functions" fixed test does.
Please read https://docs.codewars.com/authoring/guidelines/description.
I'm not complaining about lack of clarity, I'm complaining about specification by example, which in practice is an invitation to solvers to read author's mind, something solvers are notoriously bad at.
ETA: just noticed that you already updated the description. what you have now is not bad at all! it could be more clear that multiple functions working on a single argument result in a single element in the output;
[0,inc,dec]
could also result in[1,-1]
, but that's not the intention. the "collapsing" could be expanded on, or an example could specifically clarify this ( this is what examples are for! ).I had to guess what to do from the examples, because the description does not say:
Loading more items...