This website works better with JavaScript
Inicio
Explorar
Ayuda
Iniciar sesión
ikachan
/
leetcode-go
Seguir
1
Destacar
1
Fork
0
Archivos
Incidencias
0
Pull Requests
0
Wiki
Árbol:
514ec075d8
Ramas
Etiquetas
master
leetcode-go
/
leetcode
/
easy
/
342.power-of-four.go
342.power-of-four.go
93 B
Histórico
Raw
1
2
3
func isPowerOfFour(num int) bool {
return (num & (num-1) == 0) && (num & 0x55555555 != 0)
}