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.
For example, you want to calculate the sum of 1 to 100, you should not write:
you only need write:
You need find out a formula ;-)
maybe you need an O(1) solution, the point of this kata is not calculate, is find a simple way to get the result.
and in fact, this kata did not need more calcute but need more thinking ;-)
perhaps you can paste your code here(Mark as having spoiler content) and ask someone to help you ;-)