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.
This comment is hidden because it contains spoiler information about the solution
C: The reference solution incorrectly expects 0 for all 1-element sequences.
And I like how I was stuck this whole time until I read your comment. My code kept getting timed out because of these summations.
Thanks mate !
specs are unclear : what should we return if
end == start
? and ifstep == 0
?not a kata issue
not a kata issue
-5 is not greater than -1. look at the step (third argument)
this does not constitute a kata issue. kata issues are only bugs in the code, don't raise them lightly
I get the following in C :
Since when is -5 greater than -1 ?
This comment is hidden because it contains spoiler information about the solution
Why is this faster? Are lots of cases in an if statement slow? Would a switch be faster?
This comment is hidden because it contains spoiler information about the solution
Your method works but why would you waste your memory to store all these square values if you won't need them later?
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution