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.
it is there as of now
This comment is hidden because it contains spoiler information about the solution
If someone comments this on my code one day, it will all have been worth it.
isn't the message clear enough? You're supposed to solve the kata without using your three globals
that is impossible
The variable names tell you the truth. lol
I was wondering when a first solution abusing this fact will appear. now i know :)
It would not really help, why would it?
Whole point of the kata is to find and use a performant algorithm. There exists one which is O(n) in time and O(1) in space and requires no additional pointers.
Should be fixed, please verify. You need to reset the trainer to see changes, so remember to back up your code!
So apparently I did not update sample tests :/ I will fix this tomorrow, sorry for that. Until then, you can edit sample tests and change all floats to doubles.
Where do you see the
float
? it should not be there anymore, I changed all floats to doubles recently.Maybe I forgot to change one place, or maybe you have an old version of code in your trainer?