Open yokostan opened 5 years ago
https://leetcode.com/problems/bulb-switcher/discuss/77104/Math-solution..
Math problem, sqrt(n)
class Solution { public int bulbSwitch(int n) { return (int)Math.sqrt(n); } }
https://leetcode.com/problems/bulb-switcher/discuss/77104/Math-solution..
Math problem, sqrt(n)