计算机Leetcode, again

Leetcode - Bulb Switcher

2016-10-14  本文已影响3人  Richardo92

My code:

public class Solution {
    public int bulbSwitch(int n) {
        return (int) Math.sqrt(n);
    }
}

reference:
https://discuss.leetcode.com/topic/39558/share-my-o-1-solution-with-explanation

没什么意思,数学题。

Anyway, Good luck, Richardo! -- 10/13/2016

上一篇 下一篇

猜你喜欢

热点阅读