This website works better with JavaScript
首頁
探索
說明
登入
ikachan
/
leetcode-go
關注
1
讚好
1
複刻
0
檔案
問題管理
0
合併請求
0
Wiki
目錄樹:
283d4e8e13
分支列表
標籤列表
master
leetcode-go
/
leetcode
/
easy
/
342.power-of-four.go
342.power-of-four.go
93 B
文件歷史
原始文件
1
2
3
func isPowerOfFour(num int) bool {
return (num & (num-1) == 0) && (num & 0x55555555 != 0)
}