mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-05 08:27:30 +08:00
8 lines
99 B
Go
8 lines
99 B
Go
package leetcode
|
|
|
|
import "math"
|
|
|
|
func bulbSwitch(n int) int {
|
|
return int(math.Sqrt(float64(n)))
|
|
}
|