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.
Folks, I would love to get some feedback on a kata a put together.
https://www.codewars.com/kata/spies-expose-the-dirty-double-crossers
Any thoughts how to improve?
This comment is hidden because it contains spoiler information about the solution
Glad you enjoyed. I'll be interested to see how people solve it. Can you paste the exact error your are getting from the quick check? In the example mentioned above the ring size would be 1 because no one is spying on each other.
Thanks for taking a look at this one. I have updated the test cases so that - I beleive- you will receive a counter examples in case of failure. The random test case code snippet is:
This is my first Kata and I am not an expert on hTest, so I'd welcome improvement suggestions.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
What is the purpose of the modulo function, why will the haskell mod function not suffce? It appears the code only calls modulo with a positive divisor of 26 so wouldn't the test ( m = if (a >= 0)..) always return True?
What should the message be split by in case of length 6?
It seems there are a number of options that meet the spec such as 2,2,1,1,0 or 1,2,2,1,0 or ...
@doc_d0s are you sure about that ? 14 + 14 + 14 +14 +2 = 58 not 72.
interesting
This comment is hidden because it contains spoiler information about the solution
nice code.
Sure! It is my first translation.. take a look at the update and let me know if feedback
The random testing is looking for negative values. Does this make sense in the context of the problem? How could one purchase something for a negative amount?
--here is the error message--
Falsifiable (after 13 tests and 4 shrinks):
expected: Just (0,1)
but got: Nothing
0
[2,-2]
very clearly written
Loading more items...