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
fwiw, this is the easiest code to read. I'm a beginner, but it strikes a balance between compactness and readability.