This website works better with JavaScript
Etusivu
Tutki
Apua
Kirjaudu sisään
ikachan
/
leetcode-go
Tarkkaile
1
Äänestä
1
Fork
0
Tiedostot
Ongelmat
0
Pull-pyynnöt
0
Wiki
Puu:
514ec075d8
Branchit
Tagit
master
leetcode-go
/
leetcode
/
easy
/
342.power-of-four.go
342.power-of-four.go
93 B
Historia
Raaka
1
2
3
func isPowerOfFour(num int) bool {
return (num & (num-1) == 0) && (num & 0x55555555 != 0)
}