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 kata is 9 years old. ChatGPT learned from this.
that was done by chatgpt lol
Nice one,really clever.I didn't think of that I had to use sum of cube formula to get the answer.
why?
Very clear logic! But I feel a little bit dangerous to use loop like this.
Very readable, this one is excellent.
Wow, this one is almost the same as mine, just a bit less verbose. Very readable.
Glad to hear it because this is more or less how i did mine... not that clever, but did the job
Check how long your code will run for m = 1025247423603083074023000250000 :)
Examine the problem with a bit of math, might help.
When you post code mark it as "Spoiler" please.
This comment is hidden because it contains spoiler information about the solution