I am curious of this one, if it is ok to ask, how would someone here go about getting the roots of a number, possibly on paper the easiest way possible. For example how could I determine that the roots of 121 would in fact be 11?
Edit: Perhpas in python I could use sqrt() for that

Judging by the fact it hasn't been solved in 4 months and no feedback given to your comment, it seems that nobody really cares about those corner cases. :( Although they render a good portion of solutions plainly wrong.
There's also a really interesting one edge case: (2^26 + 1)^2 - 1. Solutions that test for fraction part of sqrt() to be zero will think it's a perfect square.

'looks like you solved it'

'looks like you solved it'

There is still a typo in that sentence.

I am curious of this one, if it is ok to ask, how would someone here go about getting the roots of a number, possibly on paper the easiest way possible. For example how could I determine that the roots of 121 would in fact be 11?

Edit: Perhpas in python I could use sqrt() for that

ah i see thx

You can see other solutions and discuss your own in Solutions section.

This comment is hidden because it contains spoiler information about the solution

Judging by the fact it hasn't been solved in 4 months and no feedback given to your comment, it seems that nobody really cares about those corner cases. :( Although they render a good portion of solutions plainly wrong.

There's also a really interesting one edge case: (2^26 + 1)^2 - 1. Solutions that test for fraction part of sqrt() to be zero will think it's a perfect square.

This comment is hidden because it contains spoiler information about the solution

Hello, there is a small typo in the kata description, last line :

"If the parameter is itself not a perfect square,

than-1 should be returned."-> "If the parameter is itself not a perfect square,

then-1 should be returned."Thanks for your kata !

did you imported math?

ahh, got it. ty.

They're hidden because they are marked as having spoiler content. When you solve that kata you can see them.

thank you rowcased, i will work on it.

## Loading more items...