Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 266 Bytes

367.md

File metadata and controls

13 lines (11 loc) · 266 Bytes

367. Valid Perfect Square

Solution 1 (time O(1), space O(1))

class Solution(object):
    def isPerfectSquare(self, num):
        """
        :type num: int
        :rtype: bool
        """
        return float.is_integer(sqrt(num))