perfect-square

Check if a number is a perfect square

Check if a number is a perfect square Question: How could I check if a number is a perfect square? Speed is of no concern, for now, just working. See also: Integer square root in python. Asked By: delete || Source Answers: You could binary-search for the rounded square root. Square the result to see …

Total answers: 25