We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7e34ab commit dbf0d64Copy full SHA for dbf0d64
src/bin/bulb-switcher.rs
@@ -0,0 +1,9 @@
1
+fn main() {}
2
+
3
+struct Solution;
4
5
+impl Solution {
6
+ pub fn bulb_switch(n: i32) -> i32 {
7
+ (n as f64).sqrt() as i32
8
+ }
9
+}
0 commit comments