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.
Try selecting version 8.2, if available.
I tested this under a very small data range because my own solution is quite slow.
T_T
There doesn't seem to be performance tests in this Kata so chances are your "proof" is relying on a circular argument, e.g.
a * b = b * a
becauseb * a = a * b
becausea * b = b * a
because ...If you've checked your proof extensively and found no such arguments, then my best advice is to see where you could perhaps shorten your proof by using fewer steps (easier said than done, I know). Hope this helps :)
After looking at it a bit deeper it's the same thing over again:
The error is actually
Yes, I know it's not the perfect place to put such a test, and Ruby's testing framework still has that bug, but clearly you haven't read the descriptions or read the previous issues where I've answered the exact same thing. So...
There are strings as inputs. Make sure you handle them properly.
(Also, the test does work when it's
0
, so you're probably failing at other test cases.)Done
You can speed it up by writing a shorter proof. Give it a shot!
The tests uses Template Haskell to generate tests to verify the proof. So it'll naturally result in longer compile time.