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.
Your goal is not to make your code shorter, but faster.
Your code being too slow is not a kata issue. Please read the posts below.
Execution Timed Out (16000 ms)
I don't know what to do to make this code shorter, I'm desperate
I have three loops (for), 1 nested in another to calculate s(n), and a separate loop(for) to calculate z(s(n)). Is there any formula to fit everything into 1 loop(for)...?