319-Bulb-Switcher

Sat 17 May 2025

https://leetcode.com/problems/bulb-switcher

import pyutil as pyu
pyu.get_local_pyinfo()
print(pyu.ps2("python-dotenv"))
from typing import List
class Solution:
  def bulbSwitch(self, n: int) -> int:
    return int(sqrt(n))
new Solution().bulbSwitch()

Score: 5

Category: leetcode