EasyForces
Index
1-100
101-200
201-300
301-400
401-500
501-600
601-700
701-800
801-900
901-1000
1001-1100
1101-1200
1201-1300
1301-1400
1701-1800
Tags
Array
String
Dynamic Programming
Tree
Graph
Math
Two Pointers
Greedy
Binary Search
Heap
Depth-first Search
Breadth-first Search
Search
Bulb Switcher
Intuition
Solution
class Solution: def bulbSwitch(self, n: int) -> int: return int(math.sqrt(n))