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.
updated description !
I agree. this is very poorly written.
This comment is hidden because it contains spoiler information about the solution
That's haskell translator's doing and shouldn't be there for reasons mentioned above.
Haskell tests for it at the very least
squareDigit (-1) `shouldBe` (-1)
I don't see any mention of negative numbers in the description nor it's tested in other languages, additionally persistent sign isn't obvious as
f(-1) == 1
could also be a valid interpretation.This reference solution does not handle negative numbers correctly
That is to say these test cases should hold