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.
Misclicked 'Submit' before removing print(), duh
Ouch, that hurts
Thank you, I missed that - then indeed there's no need for dealing with sqrt- and ^2-ing :)
Only valid for integer
x
. Works wrong for, say,x
= 31.7Like this one so much!
In this particular case it doesn't make sense.
Probably author had to cast while developing the solution and then forgot to remove it during final refactoring.