Skip to content

Commit

Permalink
Update bulb-switcher.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kamyu104 committed Dec 20, 2015
1 parent 215277e commit c881989
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions C++/bulb-switcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
class Solution {
public:
int bulbSwitch(int n) {
// The number of full squares.
return static_cast<int>(sqrt(n));
}
};

0 comments on commit c881989

Please sign in to comment.