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.
Thanks, I'll try.
Keeps failing the "ATTEMPT". "TEST" doesn't fails because is using only 3 numbers to test it. I think it can be due large numbers or too much calculations. Mine rises to 50 passed then times out.
Your code being too slow is not a kata issue. Your idea for
s
is good, but you need something better thansum
to calculatez
.Your code is not meant to be short, it should be efficient. IF making the code longer will make it faster, then that's what you sohuld do: make the code longer.
Same here... Lost kata, I guess...
Impossible to do. My code is as shortest I can do:
TEST passes almost immediately: in 0.02 ~ 0.06s
ATTEMPT waits a while and then errors Timeout
This comment is hidden because it contains spoiler information about the solution
kata hint != kata suggestion
do not attempt this with loops or lists
Oh yeah baby, this is my type of kata, math. I can finally use my endless hours of math work to gain some internet points.
You gotta use MATH.
This comment is hidden because it contains spoiler information about the solution
loops don't work, even tried recursion, doesn't work for big inputs, i think there is a very simple way you could do the Z(n) part, but how, i don't know
Added
And what about
d
?Loading more items...