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.
Go preloaded tests are not quite right. It doesn't correctly pick up the set variables
clues
andexpected
. I assume because the examples run after all lines of the Describe are evaluated, so the way it's done it only runs with last clues and examples. Could we move setting these variables inside theIt
?This comment is hidden because it contains spoiler information about the solution
This has confusing instructions. I don't mind the chessboard story or what's there but what's missing. There should be some explanation that you expect the results in a rational representation. It shouldn't be a guesswork that the returned array represents a rational number. I did go, and []int is not a natural way to express rationals.
ok admittedly I haven't read the instructions for other languages which have a hint. I rephrase the suggestion as mentioning this as a language independent requirement at the top.
This comment is hidden because it contains spoiler information about the solution
Awesome. I found "and an unlucky bear that was hit going the other direction" extremely funny. :D
So it should be
(a(b*))|c
maybe "sequencing" should be called concatenation? I think it's much better word for it
removed that testcase
Given that the author hasn't logged in for 2 years, and first I reported this 4 years ago I decided to fix the types myself.
Given that the author hasn't logged in for 2 years, and first I reported this 4 years ago I decided to fix the types myself.
Given that the author hasn't logged in for 2 years, and first I reported this 4 years ago I decided to fix the types myself.
ah. I see. the name "count" mislead me.
haskell is non solvable with broken tests.
the line in the test code
is supposed to be
otherwise it doesn't type check. This is true for both the visible and the hidden test cases.
oops, reported it on the wrong kata.
I meant to report it on https://www.codewars.com/kata/k-primes/
resolving here... opening there ...
.
haskell is non solvable with broken tests.
the line in the test code
is supposed to be
otherwise it doesn't type check. This is true for both the visible and the hidden test cases.
Loading more items...