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.
Hi! Thanks for the KATA! It was a good exercise to learn Go! :)
I think there may be something wrong with the tests or the maths of the tests? When running a TEST I get the below failed response where the maths do not calculate correctly. The square sum of 1 and 2 is 1 + 4 = 5, rather than 6; and the square sum of [0,3,4,5] is 0+9+16+25 = 50, rather than 57.
The other weird thing is that these two test seem to be checking for 5 and 50, specifically?
I'm moving on to the next Kata but thought to share this just in case something is off. Thanks again!
It is very obviouse, when looking at the other (much shorter) solutions, that I completely misunderstood the explanation and rules of the problem.
Well done on the combination of array_map and str_split.