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.
Ha, I can't even remember.
point free! Nice :)
Not only did I not know about traverse, I had forgotten that the semicolon syntax could be used in where clauses!
Really nice solution, even with the neat layout, too.
Bugfix: include "CD" and "XL".
Thanks.
I am having trouble submitting my solution. It passes the default "Your Test Cases" test -- which is basically just a check that the code compiles.
However, when I try to submit, it times out at 6000ms. I don't know what to do at this point because submission testing is completely opaque.
This really sucks because I spent quite a bit of time learning this singleton stuff to get everything to work...
Can someone help me figure out why the tests are timing out?
Nullvoid,
Can you please post a brief explanation of this algorithm? I understand the Haskell code completely, but I don't know why the underlying formulas work.
If not an explanation, can you post a link to another resource that explains the algorithm?
Thanks.
My solution grows the spiral from the center by adding layers at each iteration. This produces a valid spiral that does not touch itself.
However, my solution is rejected by the test-suite for two reasons:
I added special functions to my solution that convert my spirals to ones accepted by the test-suite. However, I think it would be better to expand the test-suite to accept inverted spirals (1 <-> 0) and rotated even spirals.