Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 234 Bytes

319.md

File metadata and controls

13 lines (11 loc) · 234 Bytes

319. Bulb Switcher

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

class Solution(object):
    def bulbSwitch(self, n):
        """
        :type n: int
        :rtype: int
        """
        return int(sqrt(n))