babyhacker28 / valid-perfect-square Goto Github PK
View Code? Open in Web Editor NEWGiven a positive integer n, return true if n is a perfect square or false otherwise. A perfect square is an integer that is the square of an integer. You must not use any built-in library function, such as sqrt. Ex1: I/p: n=16 O/p: true, because 4*4=16 and 4 is an integer, in I/p: n=14, false because 3.742*3.742=14 and 3.742 is not an integer.