Bulb Switcher

这题最后穷举一些数就发现规律了,这样的题有什么意义吗...

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

results matching ""

    No results matching ""