LEETCODE
UNLOCKED
🧋
Ad-free goal
1/5
A
Alex
🧋
AMAMazing
Your name here
Buy a boba, get your link shown
Bulb Switcher
Solution Code
Python
Java
C++
Javascript
Copy
class Solution: def bulbSwitch(self, n: int) -> int: return int(sqrt(n))
Video Guide
Leetcode Daily
Time Complexity
O(
1
)
Space Complexity
O(
1
)