Skip to content

Instantly share code, notes, and snippets.

@xzhang311
Created May 9, 2016 16:32

Revisions

  1. xzhang311 created this gist May 9, 2016.
    6 changes: 6 additions & 0 deletions Q319.cpp
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    class Solution {
    public:
    int bulbSwitch(int n) {
    return int(sqrt(n));
    }
    };