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.
done
This comment is hidden because it contains spoiler information about the solution
C++ test cases produce warnings because counters in loops have wrong type. Those should be size_t instead of int,
Please add random tests.
Some test cases are missing, (like 999.9)
And the test cases needs some random tests
Thanks. The correct solution passes now.
Fixed
Fixed
Forking the translation and approving the new one is the usual way.
Yes, you need the privileges (that comes with a lot of honor points) to edit the kata, or if you find a way to solve the kata anyway, you could try forking the Haskell translation with the fixed one.
Ok, I know Haskell, how do I fix it? Do I need some rep/permissions to do so?
Some power-user who knows Haskell could fix it I guess (not me).
Yes, that is in haskell. I have the solution, but I am new to codewars, so I don't know how to edit the kata(or to get proper permissions to do so).
If that's in Haskell, there is already an open issue about it below.
The authors solution is incorrect. It reverses the input if it does not contain dots...
So authors solution treats strings "123" as "321", examples from other comments:
"34" becomes "43", then "44" instead of correct "35"
"76" becomes "67", then "68" instead of correct "77"
I have both correct and bugged solutions for this problem. So if there is someone, who can correct the kata you can use mine to fix it.
Loading more items...