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.
I'm getting the same problem. I think the checker for the random values is wrong.
I keep failing the random tests, but I think the test is wrong. It's passing 676^147 and 890^137. It's expecting a zero and I'm returning -1. I checked it in Wolfram Alpha and the first one IS greater.
I keep getting an "Execution Timed Out" error on "Attempt" even though the same code with the same tests returns instantly on my own machine.
Some datatypes don't have sufficient precision to do the calculations accurately. Try using a decimal instead of a double (C#).
http://0.30000000000000004.com/
Seriously? If that's the case it should be asking for a List<List<int>> rather than just a List<int>.
C#. Thanks. Because of the environment I normally work in, Console isn't usually of that much use to me. (I normally use breakpoints and the VS Watch window). Once I could see what the code was recieving I could see what cases I wasn't catching and it works fine now.
I passed the sample data, but when I try with the random data I keep running into the same problem. It expects a negative integer and is getting its positive counterpart. I see some people here have been getting the same problem.
I wish I could see the inputs that were triggering those errors.
Either the description or the testing on this kata is wrong.
In cases where n==0, the instructions say to return an empty array, but in those cases it will only accept an array with a single value of 0.