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.
Yes, that is true. It should be j<=sqrt(i).
should be j <= sqrt(i)?
why would that make a diff, absolute size is meaningless. its about the geom of the input.
time squaresums.sh 100000 -> 1, 2, 4, 13, 447, 99999 == real 0m0.028s
time squaresums.sh 1000000000000 -> 5, 22, 1261, 1414213, 999999999999 == real 0m0.023s
Agree, regarding the benefits of "figuring" it out. Sometimes it's more of a challenge than the kata itself and can be a real headache, but I've found I learn more about the C++ language as a whole (in terms of its quirks and intracacies) when I finally get through it