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.
Sorry, I'm not really active on CW at the moment.
This comment is hidden because it contains spoiler information about the solution
There seems to be a bug in the
random small number tests
section. All of those tests will pass as long as you return any non-zero number (including negatives, decimals and irrationals!).JS version is erroring at Random large tests:
sq is not defined
I had to click "reset" at the bottom before seeing this actually work in training.
Approved.
I tried approving it, but it appears the recent changes I've made to the JS version are not allowing me to approve the Haskell one. Any idea what to do now?
The random generator of this fork has been merged into the original kata.
Merged. Thanks!
All fixed. Thanks for your help, by the way. :)
Well I had to make sure that every node was connected into one graph. I couldn't think of any faster way of ensuring this other than to create a linked list but also add additional edges until all nodes were included.
I've moved the generator over, but left the feedback - as it's needed for the sample tests too. In the end, seeing the code for either function doesn't tell a whole lot about how to solve it.
Someone with great knowledge please explain to me how my answer works. I kind of guessed (using general observations) but I don't understand how it works! :/
Nice kata! Looks like it covers every possible edge case. Got me thinking quite a bit. And more over - this could be a useful function in many other applications!
Thanks
A little fun - perfect for a rainy day like today. Thanks!
Loading more items...