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.
Maybe, just maybe this is an actual issue ...
There's no need to actually use a sieve to solve this kata. Currently this kata is almost a duplicate of the numerous primes katas... Tests should be tougher.
Not applicable as this is a 7kyu kata ^^
Nobody's going to change a kata after so many completions.
Totally agree!!
There is a comment that says "return all primes less than x", but if x is a prime then it is a solution. Should it say "return all primes up to x" ?
great kata btw!
Java:
"I would like to report a duplicate issue."
Closing.
yes, any way to contribute and fix this problem ?
Funny enough, the description only states that the value needs to be rounded to two decimals. Loophole, yay! So
car :: Double -> Int -> Double
should be an eligible type. The actual type is up to you (and the original author).Use QuickCheck. The codex contains some examples, but in this case
\(Positive price) (Positive years) -> ...
should be fine.Thanks for taking the time to review:
Float
should be enough to handle the value of a car. I'm not going to push back if you thinkcar
method needs to recieve aDouble
, although I don't think double precision is needed in this particular case.String
- which btw I don't particularly like - if is legit to change the haskell translation to returnFloat
orDouble
I'd be more than eager to do implement the change.Test.QuickCheck
, I'll remove it.Float
and notDouble
?String
instead ofDouble
?Test.QuickCheck
is redundant, since you don't actually useQuickCheck
Haskell translation kumited.
Test harness for haskelll has an issue as reported below.
If there's a way to contribute code to have the issue fixed I don't mind helping to have it fixed.
Thanks for the link!
Loading more items...