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.
Good idea to assign the variables like that. Unfortunatly sort sorts by string value unless you add your own callback.
Challenging kata. Had to go out and take a walk to come up with a solution.
Decided to tackle it recursively. Should give it an other to see if I can come up with something more 'stack-friendly'.
Anyways, kudos :)
In the requirements:
I could pass the tests without doing the elimination round. Here's a test that does make sure elimination takes place:
I can currently pass the tests without doing the elimination round. Will try and implement it nonetheless.
Got the same issue, though my elimination technique differs.
Hard to figure out whether or not i misinterpreted the instructions.
+1 for efficient and easy to read
+1 : easy to understand
I could still pass the 'submission' with a similar 'adjecent end values' bug. I posted a comment about it below my solution.
Btw, it is a nice kata, kudos!
I made an error in my solution. In the last step of my 'generator' i yield the seed rather than the accumulated sum.
Might need an extra test to make this fail.
Same here,
_0_BasicTests
Expected: null
But was: 123
at KataTest._0_BasicTests () [0x00000] in :0
_1_RandomTests
Test Passed
After passing _0_BasicTests in the first run. Are they not the same?
I had the same problem, was wondering if i got it wrong, entered a similar solution in Python and then it passed. Something seems to be wrong with the Haskell tests.