TheAlgorithms-C/leetcode/src/367.c
2020-05-29 20:23:24 +00:00

8 lines
143 B
C

bool isPerfectSquare(int num)
{
for (long i = 1; i * i <= num; i++)
if (i * i == num)
return true;
return false;
}