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.7
x
Like 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.
Loading collection data...
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.