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.
thank you for pointing out. It would've been much easier if the didn't insist 'Maybe' type.
I get this error too. My solution works perfectly if I run it locally. :/
The Ruby tests allow it, I did a really silly solution as I was in such a mood and I was surprised it passed. I even calculated the even and odds individually which makes no sense obviously.
A pure brute force algorithm won't be able to pass the tests. Try to study a math pattern in the triangle to speed up your code.
This comment is hidden because it contains spoiler information about the solution
The ranking of 8kyu is for the whole kata. It is not possible to rank it harder for a single language.
I agree, this Kata seems far too difficult for an 8kyu problem.
Oh I'm sorry. I completely misread the problem. Thanks!
Nope. Proof shown below using simultaneous equations.
Your proposed answer:
That seems to have fixed it.
I noticed what looks like a mistake in one of the tests:
animals 72 200
shouldBe
Just (44,28)Shouldn't this be: Just (36, 50) ?
The initial code has been setup incorrectly, I fixed it by slightly modifying the initial code. Change "module animals where" to "module Animals where" and tell me if it works.
I'm getting the following error with Haskell:
/tmp/haskell117228-24-1lyozsz.ncr0y66r/Animals/Test.hs:3:8:
Could not find module `Animals'
Use -v to see a list of the files searched for.
I don't understand why you are using a monad in an 8kyu problem. This is extremely frustrating for someone just starting out in Haskell.