This website works better with JavaScript
Home
Esplora
Aiuto
Accedi
ikachan
/
leetcode-go
Segui
1
Vota
1
Forka
0
File
Problemi
0
Pull Requests
0
Wiki
Albero (Tree):
cfdbb83721
Rami (Branch)
Tag
master
leetcode-go
/
leetcode
/
easy
/
342.power-of-four.go
342.power-of-four.go
93 B
Cronologia
Originale
1
2
3
func isPowerOfFour(num int) bool {
return (num & (num-1) == 0) && (num & 0x55555555 != 0)
}