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.
Yeah, that's cool and easy to understand, well done!
Haskell translation
that's coolest one, dude
Using algebraic progression is cool!
I think there are several issues with this translation:
The solution function should be called SquareSumsRow(), as the description says.
Maybe that name isn't perfect, but it's not terrible either. There's no good reason to change it. And the name GetPermutation() doesn't make sense. That's not what the function does.
The full solution should compute the result, not just look it up in a precomputed table.
I think a kata solution should show users an example of a good solution. A table of results that has been computed by some other code we don't get to see feels almost like cheating.
The verifier code should be in the tests, not in preloaded code.
That's a matter of taste. There are many katas that put such code into the preloaded code, but that often means that users trying to solve a kata are kept in the dark about what's being tested. Sure, keeping that code in the tests leads to code duplication between example tests and full tests, but it helps users understand what's going on, and it lets them adapt the tests to their needs.
This comment is hidden because it contains spoiler information about the solution
I don't understand how I can know whether the code is valid or not after calculation sum and checksum. Please, can you explain to me?
This is why math is important for programming!
Great Kata, thanks!
not bad, mate.
I think this solution is actually smart, good work
writing loops only to realise could've done just simple maths
+rep
Gauss would be proud! What a code.
This comment is hidden because it contains spoiler information about the solution
Loading more items...