mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-07 01:44:56 +08:00
add: leetcode 0319 solution
This commit is contained in:
7
leetcode/0319.Bulb-Switcher/319.Bulb Switcher.go
Normal file
7
leetcode/0319.Bulb-Switcher/319.Bulb Switcher.go
Normal file
@ -0,0 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import "math"
|
||||
|
||||
func bulbSwitch(n int) int {
|
||||
return int(math.Sqrt(float64(n)))
|
||||
}
|
Reference in New Issue
Block a user