LeetCode
Valid Perfect Square
Click
here
for an explanation.