Leetcode - Bulb Switcher

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

    原文作者:Richardo92
    原文地址: https://www.jianshu.com/p/576b56311ee6
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞