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.
Not StackOverflowException, just OverflowException ;)
Tests have evolved since
how did you passsed test?
I don't like using two tenary operators when you could do simple if ... else.
This solution does not work anymore as there is an overflow. BigInteger should probably be used.
Maybe the associated tests were updated in the meanwhile.
How this code pass the test??? my first attemp with something similar failed 3 of the test... maybe the test where updated since this???
That was my fist try it did not pass BigInts and Null value :(
Well, i agree, this is the best one of practices, but its slow. It runs more than 10k(sometimes jumps to ~40k, weird) StopWatch ticks. Meanwhile converting string to char[] and reversing gave me less than 2k ticks.